![]() |
Routines |
| Prev: 38334 | Up: Map | Next: 38381 |
|
Used by the routine at InitialiseGame.
|
||||
| CreateInterruptByteJumpTable | 38354 | LD HL,65024 | HL=InterruptLowOrderByteJumpTable. | |
| 38357 | LD A,H | I=254. | ||
| 38358 | LD I,A | |||
| 38360 | DEC A | A=253. | ||
|
Write 253 from InterruptLowOrderByteJumpTable for 256 bytes. All will become clear soon...
|
||||
| CreateInterruptByteJumpTable_Loop | 38361 | LD (HL),A | Write A to *HL. | |
| 38362 | INC L | Increment L by one. | ||
| 38363 | JR NZ,CreateInterruptByteJumpTable_Loop | Jump to CreateInterruptByteJumpTable_Loop if L is not equal to 0. | ||
| 38365 | INC H | Increment H by one. | ||
| 38366 | LD (HL),A | Write A to *HL. | ||
|
Write
JP InterruptRoutine to *AliasInterruptRedirect
|
||||
| 38367 | LD A,195 | Write JP (195) to *AliasInterruptRedirect. |
||
| 38369 | LD (65021),A | |||
| 38372 | LD HL,38381 | Write InterruptRoutine to *65022. | ||
| 38375 | LD (65022),HL | |||
| 38378 | IM 2 | Set interrupt mode 2. | ||
| 38380 | RET | Return. | ||
| Prev: 38334 | Up: Map | Next: 38381 |