大丈夫、これは私のコード..ですint 13h ah = 08h、何が間違っていますか?
mov ah,08h
mov dl,80h ;have Tried for 81h,82h....
int 13h
mov ah,0Eh
int 10h ; printing the value in al.
のint 10hが、結果は常に80Hを含むすべてのための "スマイリーASCII文字"、81Hである を起動後、画面
のASCII文字を印刷します82H .. 出力画面は、ここでhttp://postimage.org/image/5twm1ml5j/ それは私がハードディスクを、試す前に私のラップトップにUSBS ...
を添付しましたああ= 0の場合はnullですです
私は何をしていますか?
これは私の全体のコードであるQEMUのPCエミュレータとNASM
を使用。
BITS 16
start:
mov ax, 1984 ; Set up 4K stack space after this bootloader
add ax, 288 ; (4096 + 512)/16 bytes per paragraph
mov ss, ax
mov sp, 4096
mov ax, 1984 ; Set data segment to where we're loaded
mov ds, ax
mov ah,08h
mov dl,80h
int 13h
mov ah,0Eh
int 10h
times 510-($-$$) db 0 ; Pad remainder of boot sector with 0s
dw 0xAA55 ; The standard PC boot signature
が、私は約20年前に書いた作業ブートローダのコードです:https://gist.github.com/546634 –