![]() |
Routines |
| Prev: 631D | Up: Map | Next: 633A |
|
Used by the routines at 62D7 and 7DA7. On entry, A holds the event identifier, which will be one of:
The routine returns with the zero flag reset if the corresponding signal has been raised.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631E | PUSH AF | Save the event identifier briefly | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631F | AND $F8 | Keep only bits 3-7 (the byte index) and shift them into bits 0-4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6321 | RRCA | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6322 | RRCA | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6323 | RRCA | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6324 | ADD A,$C8 | Modify the LD A,(m) instruction at 6334 below so that m is 7FC8, 7FC9, 7FCA or 7FCB | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6326 | LD ($6335),A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6329 | POP AF | Restore the event identifier to A | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632A | AND $07 | Keep only bits 0-2 (the bit index) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632C | ADD A,A | Modify the BIT n,A instruction at 6337 below so that n=A (0-7) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632D | ADD A,A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632E | ADD A,A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632F | ADD A,$47 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6331 | LD ($6338),A | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6334 | LD A,($7FC8) | Pick up the byte holding the signal flag for this event (the operand of this instruction is modified earlier in this routine) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6337 | BIT 0,A | Reset the zero flag if the signal has been raised (this instruction is modified earlier in this routine to check the appropriate bit) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6339 | RET | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Prev: 631D | Up: Map | Next: 633A |