Chapter 8 - Using MS-DOS
PL-5910 Series User Manual
8-41
Operation
Input
Output
Joystick
Reading button
status
AH =
DX =
84h
00h
AL = Button status
00h: Pressed
01h: Not pressed
Bit 7: 2nd button status on 2nd joystick
Bit 6: 1st button status on 2nd joystick
Bit 5: 2nd button status on 1st joystick
Bit 4: 1st button status on 1st joystick
Reading resistance
value
AH =
DX =
84h
01h
AX =
BX =
CX =
DX =
Resistance value of horizontal coordinate
of 1st joystick
Resistance value of vertical coordinate of
1st joystick
Resistance value of horizontal coordinate
of 2nd joystick
Resistance value of vertical coordinate of
2nd joystick
Wait timer overwait
AH =
CX:DX =
86h
Wait time in µ sec units
CY =
=
0: Successfully completed
1: Already triggered or not supported
Transmitting memory
block in protect mode
AH =
ES:SI =
87h
Top address in descriptor
ZF =
CY =
AH =
=
=
1: Successfully completed
1: Error
00h: Successfully completed
01h: RAM parity error
02h: Not in protect mode
ES:SI =
Dummy (00h)
GDT(00h)
Source segment descriptor
Destination segment
descriptor
BIOS C5 (00h)
SS (00h)
CX = Number of words to transfer
Starting protect mode
AH =
BH =
BL =
ES:SI =
89h
Offset of insignificant (mask)
interrupt vector address
Offset of significant (slave)
interrupt vector address
Top address in following table
CY =
AH =
CS =
DS =
ES =
SS =
CY =
AH =
0: Successfully completed
00h
CS value specified in ES:SI table
DS value specified in ES:SI table
ES value specified in ES:SI table
DS value specified in ES:SI table
1: Error
FFh
CS dummy (00h)
GDT
IDT
DS
ES
SS
CS
TEMP BIOS (00h)