User guide

There are a large number of powerful commands provided by the ROM. Information
on the Mouse commands can be checked by using the *HELP MOUSE and information
about the ICONS by *HELP ICONS command.
The following sections describe the commands in detail.
e.g. A%=64:CALL &FFF1
This call returns in the 7 bytes pointed to by XY registers, the co-ordinates of the
Mouse (in Graphics and Text form), as well as the state of the three Mouse buttons.
XY+ 0 LSB of X co-ordinate
1 MSB of X co-ordinate
2 LSB of Y co-ordinate
3 MSB of Y co-ordinate
4 Text X co-ordinate (0-19/39/79)
5 Text Y co-ordinate (0-31)
6 Mouse buttons cme00000
where c = cancel
m = move
e = execute
bit reset when the button is pressed
e:g. in BASIC
10 DIM block 6
20 X% = block M0D 256
30 Y% = block DIV 256
40 A% = 64
50 CALL osword
60
70 xcord = ?block + (256 * block?1)
80 ycord = block?2 + (256 * block?3)
90 x = block?4
100 y = block?5
110 button = block?6