SECTION 6
Conversions and Interfaces
6-58 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
INT 13h, Function AH = 16h: Detect Disk Change
BIOS
Verifies that the specified PC Card drive is available. This procedure returns
disk change for PC Cards if they are present. It returns
not ready
if the PC Card
is not present. Call Function 15h first to see whether the drive supports a
change line.
On Entry:
AH = 16h
DL = Drive number
On Return:
If successful:
Carry = 0
AH = Type code:
01h = Floppy without changeĆline support
02h = Floppy with changeĆline support
03h = Hard disk
CX:DX = Number of 512Ćbyte sectors
If NOT successful:
Carry = 1
AH = Drive status
00h = No media change
01h = Invalid drive
06h = Media changed or change line not supported
80h = Card is not present
INT 13h, Function AH = 18h: Set Media Type
BIOS
Sets the specified media type for the specified disk drive.
On Entry:
AH = 18h
DL = Drive number
CH = Lower 8 bits of highest cylinder number (number of cylinders ć1)
CL = Sectors per track (bits 0ć5) top 2 bits of highest cylinder number
(bits 6, 7)
On Return:
If successful:
Carry = 0
AH = Type code:
01h = Floppy without changeĆline support
02h = Floppy with changeĆline support
03h = Hard disk
CX:DX = Number of 512Ćbyte sectors
If NOT successful:
Carry = 1
AH = 01h (Error code)
6. Conversions and
Interfaces