x86 NASM 'org' directive meaning

后端 未结 2 1848
情深已故
情深已故 2020-12-16 00:09

I am following this tutorial as a first foray into bootloader/OS development for x86 using NASM:

http://joelgompert.com/OS/TableOfContents.htm

And I\'m on Le

2条回答
  •  天命终不由人
    2020-12-16 00:15

    0000:7C00 is not equivalent to 7C00:0000. The segment part is counted in paragraphs, not bytes. Try this instead:

    mov ax, 0x7c0 
    mov ds, ax
    

提交回复
热议问题