![]() |
Routines |
| Prev: 7EB2 | Up: Map | Next: 7EE6 |
|
Eight bytes at a time from the player up to $EAA8, which is where MAIN_LOOP's own first table begins -- so between them the two loops cover every record exactly once, at two different rates.
|
||||
| FRAME_TICK_NEXT | 7EC5 | LD DE,$0008 | Eight bytes on. | |
| 7EC8 | ADD IX,DE | |||
| 7ECA | PUSH IX | Until the main loop's first table is reached. | ||
| 7ECC | POP HL | |||
| 7ECD | LD DE,$EAA8 | |||
| 7ED0 | AND A | |||
| 7ED1 | SBC HL,DE | |||
| 7ED3 | JR C,TICK_DISPATCH | |||
| 7ED5 | CALL TICK_CLOCK | Then advance the clock. | ||
| 7ED8 | LD A,($5C78) | |||
| 7EDB | LD ($5E03),A | |||
| 7EDE | XOR A | |||
| 7EDF | LD ($5E04),A | |||
| 7EE2 | POP IX | |||
| 7EE4 | EI | |||
| 7EE5 | RET | |||
| Prev: 7EB2 | Up: Map | Next: 7EE6 |