![]() |
Routines |
| Prev: 56265 | Up: Map | Next: 56375 |
|
Used by the routines at Dispatch_Handlers and Handler_Combination.
|
||||
|
Return unless a timer is running.
|
||||
| Handler_EventTimer | 56358 | LD A,(25759) | Return if *EventTimer is zero. | |
| 56361 | OR A | |||
| 56362 | RET Z | |||
|
Count down and fire when it hits zero.
|
||||
| 56363 | DEC A | Decrease *EventTimer by one. | ||
| 56364 | LD (25759),A | |||
| 56367 | OR A | Return if the timer is still running. | ||
| 56368 | RET NZ | |||
| 56369 | LD A,(25760) | Jump to Dispatch_Events with *PendingEvent. | ||
| 56372 | JP Dispatch_Events | |||
| Prev: 56265 | Up: Map | Next: 56375 |