The fo llow in g default values are automatically set by the
Mouse In terface upon switching on. They remain in force
u n til changed by your program, or, in the case of the
current mouse position, by movement of the mouse it s e lf.
XMAX: maximum range in the X (horizontal) direction 640
YMAX: maximum range in the Y (vertical) direction 400
XMIN: minimum range in the X direction 0
YMIN: minimum range in the Y direction 0
X and Y coordinates of the current mouse position, both 0
All interrupts disabled.
The summary of commands and parameters follow s. The
hexadecimal value for the OUT instruction via Port 2 two is
given for each command, together with a description of its
purpose and any ensuing parameters. Negative values are
represented as two's complement.
00 Read absolute position of mouse
Sequence of parameters subsequently read:
X co-ordinate, low byte
X co-ordinate, high byte
Y co-ordinate, low byte
Y co-ordinate, high byte
Switch status byte (see below)
The absolute position refers to movement of the mouse
(within the delimited range) since the starting position
of the mouse was last set (in itia lly set at switching on
to 0,0; can be subsequently set by command 04).
01 Enable interrupt issued when mouse is moved
No parameters.
At the same time, this command disables the switch
interrupt.
02 Disable all interrupts
No parameters.
03 Reset the interrupt line and INT bit (status byte)
No parameters.
MOUS E-8