????2??sys.s
mov ax??cs
mov ds??ax
mov es??ax
mov ss??ax
mov ax??msg
mov bp??ax
mov cx??msgLen
mov ax??01301h
mov bx??000ch
mov dl??0
int 10h
jmp $
msg:
db "It's the world of kernel!"??0ah
msgLen equ $-msg
times 512-($-$$) db 0
??????????????????????????????boot.bin sys.bin ??????????dd if=sys.bin of=boot.bin bs=512 seek=1 count=1 ????????512????bin??????????1024???????????boot?????????????????sys?????????????????
???????qemu-system-i386 -hda boot.bin ???????“Now??begin to load kernel....”??仰?????????sys???????У????????bochs??????????????
?????????????qemu-system-i386 -fda boot.bin ?????boot??????int 13h???????????????????????????ò????-fda
?????????????????????????????е?
????load:
????mov dx??0x0000  ;dh->??????dl->????????
?????????
????load:
????mov dx??0x0080  ;dh->??????dl->???????????????0???:  ==> ????A:0  ????B:1
????;?????80h???: ===> ???C:80h    ???D: 81h ....
?????????