Intermec 6100 Reference Guide

Page of 328
SECTION 6
Conversions and Interfaces
6-100    PEN*KEY
R
 6100 Computer Programmer’s Reference Guide
Standard Mouse Interface: INT 33h
The following is a list of the common mouse functions and the corresponding acĆ
tions.  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
No action taken.
On Entry:
AH = 00h
AL = 01h
On Return:
None
INT 33h, Function AX = 0002h:  Hide Cursor
MOUSE
No action taken.
On Entry:
AH = 00h
AL = 02h
On Return:
None
INT 33h, Function AX = 0003h:  Get Button Status and Mouse Position
MOUSE
Gets the current button status 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