Startup routines |
Prev: 32972 | Up: Map | Next: 55040 |
We jump here from the load routine at 32815. Before the game starts, the 512 bytes of data in the top and bottom rows of the display file must be copied to addresses 23904-24415, the 512 bytes of data in addresses 32256-32767 must be copied to 32768-33279, and the bottom 4 lines of the screen must be prepared.
|
||||
33224 | LD SP,23898 | Put the stack somewhere safe | ||
33227 | LD HL,16384 | Copy the data in the top row of the display file to addresses 23904-24159 | ||
33230 | LD DE,23904 | |||
33233 | CALL 32972 | |||
33236 | LD HL,20704 | Copy the data in the bottom row of the display file to addresses 24160-24415 | ||
33239 | CALL 32972 | |||
33242 | LD HL,61668 | We will eventually jump to 61668 to enter demo mode; push this address onto the stack | ||
33245 | PUSH HL | |||
33246 | LD HL,32256 | Prepare HL, DE and BC to copy 32256-32767 into 32768-33279 (overwriting this routine) | ||
33249 | LD DE,32768 | |||
33252 | LD B,2 | |||
33254 | EI | Enable interrupts | ||
33255 | JP 61600 | Jump to perform the LDIR |
Prev: 32972 | Up: Map | Next: 55040 |