SECTION 6
Conversions and Interfaces
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 6-119
Standard Mouse Interface: INT 33h
The following is a list of the common mouse functions and the corresponding
actions. To pass commands to the driver, put the command into register AX and
perform an interrupt call to INT 33h.
INT 33h, Function AX = 0000h: Mouse Reset and Status
MOUSE
Resets the mouse hardware and software; and returns the status.
On Entry:
AH = 00h
AL = 00h
On Return:
AX = ć1 Successful
0
Failed
BX = Number of buttons
INT 33h, Function AX = 0001h: Show Cursor
MOUSE
On Entry:
AH = 00h
AL = 01h
On Return:
None
INT 33h, Function AX = 0002h: Hide Cursor
MOUSE
On Entry:
AH = 00h
AL = 02h
On Return:
None
INT 33h, Function AX = 0003h: Get Button Status and Mouse Position
MOUSE
Gets the status of the current button and reports the position of the mouse
cursor.
On Entry:
AH = 00h
AL = 03h
On Return:
BX = 0 Pen is down
1 Button is down
CX = X" coordinate of mouse cursor
DX = Y" coordinate of mouse cursor
6. Conversions and
Interfaces