ChronosMM | Routines |
Prev: 25768 | Up: Map | Next: 26405 |
Used by the music player routine at 61376. Called after pressing a key on loading.
|
||||
SET_DEFAULTS | 26344 | LD A,255 | ||
26346 | LD (28107),A | Reset Megalaser status to unavailable | ||
26349 | LD A,(23672) | Get the least significant byte of FRAMES | ||
26352 | AND 15 | Only look at the first four bits | ||
26354 | LD B,4 | |||
26356 | LD C,A | |||
26357 | LD D,10 | |||
26359 | XOR A | Clear carry flag, set A to zero | ||
SET_DEFAULTS_0 | 26360 | RR C | ||
26362 | JR NC,SET_DEFAULTS_1 | |||
26364 | ADD A,D | |||
SET_DEFAULTS_1 | 26365 | SLA D | ||
26367 | DJNZ SET_DEFAULTS_0 | |||
26369 | RRA | |||
26370 | RRA | |||
26371 | RRA | |||
26372 | RRA | |||
26373 | AND 15 | |||
26375 | INC A | |||
COPY_RANDOM_HIGHSCORE_TABLE | 26376 | LD HL,60028 | ||
26379 | LD DE,360 | This will make HL TEMPORARY_DATA | ||
SET_DEFAULTS_2 | 26382 | ADD HL,DE | ||
26383 | DEC A | |||
26384 | JR NZ,SET_DEFAULTS_2 | |||
26386 | LD DE,28108 | Prepare to copy a random high score table to L28108 | ||
26389 | LD A,20 | Prepare to loop 20 times | ||
SET_DEFAULTS_3 | 26391 | LD BC,18 | Prepare to copy 18 bytes | |
26394 | LDIR | Copy 18 bytes | ||
26396 | LD BC,6 | |||
26399 | EX DE,HL | |||
26400 | ADD HL,BC | |||
26401 | EX DE,HL | |||
26402 | DEC A | Loop 20 times | ||
26403 | JR NZ,SET_DEFAULTS_3 |
Prev: 25768 | Up: Map | Next: 26405 |