Chapter 8 - Using MS-DOS
PL-5910 Series User Manual
8-39
Operation
Input
Output
Hard disk
drive
parameter
initialization
AH =
DL =
09h
Drive No.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Hard disk
seek
AH =
CH =
CL =
DL =
DH =
0Ch
Insignificant 8 bits in cylinder No.
Significant 2 bits in cylinder No.
Drive No.
Head No.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Hard disk
drive reset
AH =
DL =
0Dh
Drive No.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Hard disk
drive ready
check
AH =
DL =
10h
Drive No.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Hard disk
drive
recalibration
AH =
DL =
11h
Drive No.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Disk type
check
AH =
DL =
15h
Drive No.
CY =
=
CX:DX =
AH =
=
=
=
0: Successfully completed
1: Error
Total number of sectors (HDD only)
00h: No disk
01h: Floppy disk unchanged
02h: Disk was changed
03h: Hard disk
Media
change
check
AH =
DL =
16h
Drive No.
AH =
=
=
=
00h: Disk unchanged
01h: Inconsistent parameter
06h: Disk was changed (Carry bit ON)
80h: Drive not ready
Setting drive
type for
formatting
AH =
DL =
AL =
17h
Drive No.
0: No disk
1: Use 2-sided disk on 2-sided drive.
2: Use 2-sided disk on high-density
2:
drive.
3: Use 2HD disk on high-density drive.
4: Use 720K disk on 720K-byte drive.
CY =
=
AH =
0: Successfully completed
1: Error
Status
Setting
media type
for formatting
AH =
CH =
CL =
DL =
18h
Insignificant 8 bits in 10 bit value for
max. number of tracks
Bits 7 & 6: 10 bit value for max.
Bits 7 & 6:
number of tracks
Bits 5 - 0: Max. number of
sectors
per track
Drive No.
ES:DI =
AH =
AH =
AH =
Address of drive parameter table for floppy disk
type
00h and CY =0: Supports tracks and number
00h or CY =0:
of tracks per sector.
01h and CY =1: Cannot use function.
00h and CY =1: Does not support tracks and
00h or CY =1:
number of tracks per sector.