HELP ON INT13
Posted: Sat Apr 16, 2005 3:40 pm
Hallo...
To avoid FAT and other fs understanting (for the moment) I projected a very simple fs, but I have this strange - for me - problem:
Ofcorse when I wanto to read first, second and.... on track 0, no problem seems to come:
mov ah,2
mov al,1
mov ch,0
mov cl,1
mov dx,0
mov bx,somevalue
int 0x13
ok...
When I change the tack number and it's not 0 I had this problem:
Example: Track 2, sector 1: insteado of starting at 18432th byte (2*18*512), it starts at 36864th byte (seems 2*18*1024).
int13 reads/writes only 512 byte (a sector).
the code is the same as above with the difference:
mov ch,2
mov cl,1
What do you think I'am missing? Where I'am wrong?
PS: I'm using an image of floppy and vmware. At the beginning the floppy is formatted with all 0s, the boot-sector and some data that I know where it is for test only.
Thanks
Comet (bye from Italy)
To avoid FAT and other fs understanting (for the moment) I projected a very simple fs, but I have this strange - for me - problem:
Ofcorse when I wanto to read first, second and.... on track 0, no problem seems to come:
mov ah,2
mov al,1
mov ch,0
mov cl,1
mov dx,0
mov bx,somevalue
int 0x13
ok...
When I change the tack number and it's not 0 I had this problem:
Example: Track 2, sector 1: insteado of starting at 18432th byte (2*18*512), it starts at 36864th byte (seems 2*18*1024).
int13 reads/writes only 512 byte (a sector).
the code is the same as above with the difference:
mov ch,2
mov cl,1
What do you think I'am missing? Where I'am wrong?
PS: I'm using an image of floppy and vmware. At the beginning the floppy is formatted with all 0s, the boot-sector and some data that I know where it is for test only.
Thanks
Comet (bye from Italy)