Routines |
Prev: 6187 | Up: Map | Next: 61BD |
|
||||
PlayerInitialisation | 619A | LD HL,$6010 | HL Source address: Initialisation_Player | |
619D | LD DE,$5D00 | DE Target address: JETMAN_FRAME | ||
61A0 | LD BC,$0008 | BC=loop counter | ||
61A3 | LDIR | Action! Copy source to target, decrease counter, repeat until zero | ||
61A5 | LD A,$80 | A=$80 | ||
61A7 | LD HL,$5CF3 | if bit 0 is set for GameOptions (is this a 2UP game) then jump to PlayerInitialisation_0 | ||
61AA | BIT 0,(HL) | |||
61AC | JR Z,PlayerInitialisation_0 | |||
61AE | ADD A,$7F | Add $7F to A and update PlayDelay_Counter with the result | ||
PlayerInitialisation_0 | 61B0 | LD ($5DD7),A | ||
61B3 | LD A,($5DF1) | Decrease ActivePlayer_Lives by 1 | ||
61B6 | DEC A | |||
61B7 | LD ($5DF1),A | |||
61BA | JP DisplayPlayerLives | Jump to DisplayPlayerLives |
Prev: 6187 | Up: Map | Next: 61BD |