Hi coder,
KW> ok, i have a quick question about something my source of info doesn't
KW> explicitly state...
KW> int 13h, function 8h returns the number of tracks and the number of
KW> sectors per track in cx... it also seems to return something in ax
KW> which my info doesn't make mention of but what seems to be just the
KW> number of sectors per track all by itself...
KW> i was wondering if that is what is actually happening or if it was
KW> just a coincidence... i certainly wouldn't mind dropping the three
KW> bytes needed for and cx, 3f if i could just get the number i want from
KW> ax...
In my doc ( HlpPc 2.1 ), it's said that int 13h fct 8 return in AH the
tatus
of last disk operation, I will show U what it say:
00 no error
01 bad command passed to driver
02 address mark not found or bad sector
03 diskette write protect error
04 sector not found
05 fixed disk reset failed
06 diskette changed or removed
07 bad fixed disk parameter table
08 DMA overrun
09 DMA access across 64k boundary
0A bad fixed disk sector flag
0B bad fixed disk cylinder
0C unsupported track/invalid media
0D invalid number of sectors on fixed disk format
0E fixed disk controlled data address mark detected
0F fixed disk DMA arbitration level out of range
10 ECC/CRC error on disk read
11 recoverable fixed disk data error, data fixed by ECC
20 controller error (NEC for floppies)
40 seek failure
80 time out, drive not ready
AA fixed disk drive not ready
BB fixed disk undefined error
CC fixed disk write fault on selected drive
E0 fixed disk status error/Error reg = 0
FF sense operation failed
I hope it'll be useful 2 U.
FeP
... Coding is so funny...
--- Blue Wave/DOS v2.30 [NR]
---------------
* Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009)
|