APPENDIX I
v
tered, the address of the packet buffer will be on the stack
and in register AO.
Your routine should begin by saving all registers that
you will use, and restoring those registers before ending. It
should not spend more than one millisecond handling the in
terrupt (most of the time, just moving the packet information
to your own buffer), and should end with an RTS instruc
tion. Remember also that if you replace one of the vectors
used by the system (like mousevec, for instance), you must
either duplicate its actions in your own handler, or lose sys
tem-level functions (like Line A and GEM mouse support).
And always save the default vectors, so you can replace
them before your program ends.
IKBD Mode and Parameter Setting Commands
The IKBD supports a number of commands for using the
mouse, clock, and joystick in various modes. These settings
can changed by sending command strings to the IKBD with
the Bconin(), Ikbdws(), or Initmous() functions. A sum
mary of the command strings and their functions can be
found below.
344