![]() |
Routines |
| Prev: DBC9 | Up: Map | Next: DC37 |
|
Used by the routines at Dispatch_Handlers and Handler_Combination.
|
||||
|
Return unless a timer is running.
|
||||
| Handler_EventTimer | DC26 | LD A,($649F) | Return if *EventTimer is zero. | |
| DC29 | OR A | |||
| DC2A | RET Z | |||
|
Count down and fire when it hits zero.
|
||||
| DC2B | DEC A | Decrease *EventTimer by one. | ||
| DC2C | LD ($649F),A | |||
| DC2F | OR A | Return if the timer is still running. | ||
| DC30 | RET NZ | |||
| DC31 | LD A,($64A0) | Jump to Dispatch_Events with *PendingEvent. | ||
| DC34 | JP Dispatch_Events | |||
| Prev: DBC9 | Up: Map | Next: DC37 |