Am I stupid? (disk i/o question 2)
Posted: Sat Jul 27, 2002 8:17 am
Could anyone write a sample of read on floppy disk with int 13h? I have some problem with the parameter CX.
I tried to read the first sector of the floppy. I believe the first sector is on track 0, head 0 isn't it?
This is what I wrote:
mov ah,0x02
mov al,0x01 - 1 sector only to read
mov dh,0x0 - head 0
mov dl,0x0 - floppy drive
mov cx,0x00400 - sector 1 on track 0 *
int 0x13
* I thought in this way:
sector hight low track
cx 012345 67 89abcdef - bits of CX
000001 00 00000000
first sec track 0
Is there any error??? (I think it is )
Thank you
Comet - Italy
I tried to read the first sector of the floppy. I believe the first sector is on track 0, head 0 isn't it?
This is what I wrote:
mov ah,0x02
mov al,0x01 - 1 sector only to read
mov dh,0x0 - head 0
mov dl,0x0 - floppy drive
mov cx,0x00400 - sector 1 on track 0 *
int 0x13
* I thought in this way:
sector hight low track
cx 012345 67 89abcdef - bits of CX
000001 00 00000000
first sec track 0
Is there any error??? (I think it is )
Thank you
Comet - Italy