![]() |
Routines |
| Prev: 55780 | Up: Map | Next: 56523 |
|
Used by the routines at Initialise_Game and Prepare_Frame.
Fills the interrupt vector table with 220 and selects interrupt mode 2.
|
||||
| Initialise_Interrupts | 56500 | LD HL,57088 | Write 220 to *Interrupt_Vector_Table and the next 256 bytes. | |
| 56503 | LD DE,57089 | |||
| 56506 | LD BC,256 | |||
| 56509 | LD (HL),220 | |||
| 56511 | LDIR | |||
| 56513 | LD A,223 | Set the interrupt vector high byte to 223. | ||
| 56515 | LD I,A | Copy the interrupt vector high byte to the interrupt register. | ||
| 56517 | IM 2 | Set interrupt mode 2. | ||
| 56519 | RET | Return. | ||
|
Restore interrupt mode 1.
|
||||
| Set_Interrupt_Mode_One | 56520 | IM 1 | Set interrupt mode 1. | |
| 56522 | RET | Return. | ||
| Prev: 55780 | Up: Map | Next: 56523 |