| Ant Attack | Routines |
| Prev: 9797 | Up: Map | Next: 97BB |
|
Used by the routine at LOADED.
Clears the error, resets the stack from ERR_SP, puts RUN and ENTER in the edit line and jumps into the ROM's line executor. This is also how the game starts after loading, since the header's own auto-run line, 1, starts the loader; nothing would start the game's BASIC that the block brings in, so the game starts it itself.
|
||||
| RESTART_BASIC | 97A0 | LD A,$FF | No error. | |
| 97A2 | LD (ERR_NR),A | |||
| 97A5 | LD SP,(ERR_SP) | The stack BASIC keeps. | ||
| 97A9 | LD HL,(E_LINE) | RUN, ENTER into the edit line. | ||
| 97AC | LD A,$F7 | |||
| 97AE | LD (HL),A | |||
| 97AF | INC HL | |||
| 97B0 | LD A,$0D | |||
| 97B2 | LD (HL),A | |||
| 97B3 | EI | |||
| 97B4 | JP $12B4 | The ROM's statement loop, as if ENTER had been pressed. | ||
|
This entry point is used by the routine at INTERRUPT.
|
||||
| RESTART_BASIC_0 | 97B7 | POP AF | The ROM's own interrupt routine. | |
| 97B8 | JP $0038 | |||
| Prev: 9797 | Up: Map | Next: 97BB |