以下は、私が理解したいアセンブリコードです。このコードが nasm でアセンブルされた後、どのように 512 バイトが入力されますか?
ここでやる意味がまだよくわからない510-($-$$)
から?$
以下の$$
コードの値は何ですか?
http://www.brokenthorn.com/Resources/OSDev3.html
;***************************
org 0x7c00 ; We are loaded by BIOS at 0x7C00
bits 16 ; We are still in 16 bit Real Mode
Start:
cli ; Clear all Interrupts
hlt ; halt the system
times 510 - ($-$$) db 0 ; We have to be 512 bytes. Clear the rest of the bytes with 0
dw 0xAA55 ; Boot Signature
;*********************