On Entry:
AH
=
F15_WAIT_EVENT (83H)
AL
=
Subfunction:
o
=
Set the timer with the data passed in ES, BX,
ex
and DX registers.
1
=
Cancel the current timer.
ES:BX
=
The byte at this address will have its high bit set as soon as possible after the
"x" microseconds.
CX,DX
=
Minimum number, "x", of microseconds to wait before setting the high bit of
the address above.
ex
is the most significant word.
On Exit:
Carry
=
1 If there was another process already waiting.
a
If the calling process will be notified after the time out.
Registers Altered:
AX
F15---.JOYSTICK
(AH = 84H)
Read data from the joystick port.
On Entry:
AH
=
F15~OYSTICK
(84H)
DX
=
Subfunctions
a
=
Read the switch settings.
1
=
Read resistive inputs.
On Exit:
Carry Flag
=
0 If no errors
1 If invalid DX or no adapter present.
If DX was 0, AL bits 7..4 contain switch positions.
If DX was 1, AX
=
X position of joystick 1
BX
=
Y position of joystick 1
CX
=
X position of joystick 2
DX
=
Y position of joystick 2
Registers Altered:
AX, BX, CX, DX
Programming Example: To read all the data from the joystick adapter (switches and both
joysticks).
MOV
MOV
INT
JC
AH, F15---.JOYSTICK
OX,
00
INT_SYSTEM
HANDLE_ERRORS
,. Function 84H
,. Read the switch settings first
,. Int 15H
System Drivers
275
Need help?
Do you have a question about the Vectra and is the answer not in the manual?
Questions and answers