![]() |
Routines |
| Prev: AA0D | Up: Map | Next: AA6A |
|
Used by the routines at GameComplete and AA0D.
|
||||
|
Is this a one or two player game?
|
||||
| AA27 | LD A,($9692) | A=GameOptions. | ||
| AA2A | AND %00000001 | Keep only bit 0. | ||
| AA2C | JR NZ,$AA5A | Jump to AA5A if this is a two player game. | ||
|
This is a one player game.
|
||||
| AA2E | LD A,($96BD) | If ActivePlayer_Lives is zero then jump to GameOver_ControllerRestart. | ||
| AA31 | AND A | |||
| AA32 | JR Z,GameOver_ControllerRestart | |||
| AA34 | LD HL,$96BD | HL=ActivePlayer_Lives. | ||
| AA37 | DEC (HL) | |||
| AA38 | CALL DisplayPlayerLives | Call DisplayPlayerLives. | ||
| AA3B | LD A,(IX+$00) | |||
| AA3E | AND %00000111 | Keep only bits 0-2. | ||
| AA40 | OR %00010000 | Set bit 4. | ||
| AA42 | LD (IX+$00),A | |||
| AA45 | LD (IX+$05),$47 | |||
| AA49 | XOR A | Write 00 to OrchidEffectTimer. | ||
| AA4A | LD ($96B0),A | |||
| AA4D | LD A,$10 | Write 10 to 96B1. | ||
| AA4F | LD ($96B1),A | |||
| AA52 | LD A,$80 | Write 80 to 96B4. | ||
| AA54 | LD ($96B4),A | |||
|
This entry point is used by the routine at AA0D.
|
||||
| AA57 | JP $AD5D | Jump to AD5D. | ||
|
This is a two player game.
|
||||
| AA5A | LD A,($96E0) | If InactivePlayer_Lives is zero then jump to AA2E. | ||
| AA5D | AND A | |||
| AA5E | JR Z,$AA2E | |||
| AA60 | LD A,($96BD) | |||
| AA63 | AND A | |||
| AA64 | CALL Z,GameOver_Controller | |||
| AA67 | JP $B205 | Jump to B205. | ||
| Prev: AA0D | Up: Map | Next: AA6A |