Used by the routines at
31887,
31893 and
31905. The event identifier in
A (0, 7-12), taken modulo 8, corresponds to a bit in one of the bytes at
32640 (
A<=7) or
32641 (
A>=8). On exit,
HL points to the appropriate byte and
A holds the bit mask (single bit set), as follows:
Entry |
Exit |
Event |
0 |
1 |
End of lesson |
7 |
128 |
Time to sit down for assembly |
8 |
1 |
Teacher has arrived at top floor room in girls' skool |
9 |
2 |
Teacher has arrived at middle floor room in girls' skool |
10 |
4 |
Teacher has arrived at Blue room |
11 |
8 |
Teacher has arrived at Yellow room |
12 |
16 |
Teacher has arrived at Science lab |
Event IDs 1-6 (corresponding to those bits in
32640) are not used in any command lists, but bits 1-6 in
32640 are used internally; event IDs 13-15 (and the corresponding bits 5-7 in
32641) are not used anywhere.