私は壊れたthorn.comのO / S開発チュートリアルを読んでいますチュートリアルの1つで、次のコードがあります。
http://www.brokenthorn.com/Resources/OSDev3.html
このコードが 510 バイトをクリアする理由がわかりません。org、bits、cli、hlt もコード内にあります。510バイト未満に変更すべきではないでしょうか? タイプミスか何かでしょうか?
ありがとう。
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;*********************************************
; Boot1.asm
; - A Simple Bootloader
;
; Operating Systems Development Tutorial
;*********************************************
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 Signiture
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;