Routines |
Prev: 6C31 | Up: Map | Next: 6C58 |
Used by the routine at 7198.
|
||||
NextLevel | 6C3C | LD HL,$5F2D | Increase 1UP_Level by one. | |
6C3F | INC (HL) | |||
6C40 | LD A,(HL) | A=1UP_Level. | ||
6C41 | AND %00000111 | Keep only bits 1-3. | ||
Every 05 levels is an extra life, handle the logic.
|
||||
6C43 | CP $05 | If there's carry-over from 05 jump to GameInit. | ||
6C45 | JR C,GameInit | |||
6C47 | LD A,(HL) | Add 03 to 1UP_Level (and write it). | ||
6C48 | ADD A,$03 | |||
6C4A | LD (HL),A | |||
6C4B | LD HL,$5F2E | Increase 1UP_Lives by one. | ||
6C4E | INC (HL) | |||
6C4F | LD BC,$2500 | BC=2500. | ||
6C52 | CALL AddPointsToScore | Call AddPointsToScore. | ||
6C55 | JP $64E8 | Jump to 64E8. |
Prev: 6C31 | Up: Map | Next: 6C58 |