相关疑难解决方法(0)

使用自定义引导加载程序创建可引导的ISO映像

我试图将我用汇编语言编写的引导加载程序转换为ISO映像文件.以下是MikeOS bootloader 的代码.这是我的引导程序代码:

   BITS 16
start:
    mov ax, 07C0h     ; Set up 4K stack space after this bootloader
    add ax, 288       ; (4096 + 512) / 16 bytes per paragraph
    mov ss, ax
    mov sp, 4096

    mov ax, 07C0h     ; Set data segment to where we're loaded
    mov ds, ax

    mov si, text_string   ; Put string position into SI
    call print_string ; Call our string-printing routine

    jmp $         ; Jump here - infinite loop!
    text_string db 'This …
Run Code Online (Sandbox Code Playgroud)

linux assembly dd nasm osdev

9
推荐指数
2
解决办法
7724
查看次数

标签 统计

assembly ×1

dd ×1

linux ×1

nasm ×1

osdev ×1