I am trying to load 2nd sector of floppy disk
I test this code with fasm 1.7 and windows 7, VMware.
to make floppy image file, I used dd
from Ubuntu 13.04
I also use dd
to write .bin
into .img
here's my code
org 0x7c00
;load 2nd sector to physical ram address 0xf00
;(load '7' to 0xf00)
mov ah, 02h
mov al, 1
mov ch, 0
mov cl, 2;1~63
mov dh, 0
mov dl, 0
mov bx, 0xf00
push 0
pop es
int 13h
;check whether it is loaded correctly
;by printing a ascii character in 0xf00
mov ah,0fh
int 10h
mov ah,0ah
mov al, [0xf00];
mov cx, 1
int 10h
;pause
jmp $
times 510-($-$$) db 0h
dw 0xaa55
second_sector:
db '7'
result = don't print '7' at all what's wrong with me? thanks