![]() |
Routines |
| Prev: 42215 | Up: Map | Next: 42300 |
|
Used by the routine at RunFrame.
Scrolls the message 'TIME OUT' across the window, one frame at a time.
|
||||
| ScrollTimeOutMessage | 42268 | LD HL,65294 | Set the scroll counter to 14 and the character index to 255. | |
| 42271 | LD (43297),HL | Store them in ScrollCounter and 43298. | ||
| 42274 | LD A,8 | Set the length of the message to 8... | ||
| 42276 | LD (42354),A | ...in the operand of the instruction at 42353. | ||
| ScrollTimeOutMessage_Loop | 42279 | LD IY,(23793) | Bring back IY from SavedIY. | |
| 42283 | EI | Enable interrupts... | ||
| 42284 | HALT | ...and wait for the next frame. | ||
| 42285 | DI | Disable interrupts. | ||
| 42286 | LD HL,42300 | Point HL at TimeOutMessage. | ||
| 42289 | CALL ScrollMessage | Scroll the message by one step. | ||
| 42292 | LD A,(43298) | Fetch the character index from 43298. | ||
| 42295 | CP 17 | Compare it with 17. | ||
| 42297 | RET Z | Return if the message has gone. | ||
| 42298 | JR ScrollTimeOutMessage_Loop | Jump back to scroll the message another step. | ||
| Prev: 42215 | Up: Map | Next: 42300 |