??????????BIOS????????????????????????CPU???(???????x86???)????????????????Orange's--??????????????????????????????????????????????????

????1. ????????

????1). ????????NASM??????????http??//sourceforge.net/projects/nasm

????2). dd for Windows??????????http??//www.chrysocome.net/dd

????3). Bochs??????????http??//sourceforge.net/projects/bochs/

????????????????????????????

????2. д?????????

org 07c00h
mov ax?? cs
mov ds?? ax
mov es?? ax
call DispStr
jmp $
DispStr:
mov ax?? BootMessage
mov bp?? ax
mov cx?? 16
mov ax?? 01301h
mov bx?? 000ch
mov dl?? 0
int 10h
ret
BootMessage: db "Hello OS World!"
times 510-($-$$) db 0
dw 0xaa55

?????????boot.asm

????3. ??NASM?????????????

????nasm.exe boot.asm -o boot.bin

???????????boot.bin???

????4. ???Bochs???????????????bximage.exe?????????????????????????????????????????a.img?????????

????5. ??dd for Windows?????????boot.bin“??д”??????????a.img?У?

????dd if=boot.bin of=a.img bs=512 count=1 conv=notrunc (????????????????????????conv????????д?????????????????????????????boot.bin(1K)??a.img(1.44M)???)