Prev: AD9C Up: Map Next: AEBF
AE26: Routine at AE26
Used by the routines at ABC8, Start_1UP_Game and Start_2UP_Game.
AE26 CALL $9CA8 Call 9CA8.
AE29 CALL Game_Over Call Game_Over.
AE2C AND A
AE2D RET M
AE2E LD A,($AA44) A=AA44.
AE31 CP $11
AE33 JR Z,$AE51
AE35 LD A,($AA04) A=AA04.
AE38 CP $11
AE3A JR Z,$AE57
AE3C LD HL,$A90D
AE3F ADD A,L
AE40 LD L,A
AE41 LD A,(HL)
AE42 AND A
AE43 JR NZ,$AE51
AE45 LD A,($AA44)
AE48 LD HL,$A90D
AE4B ADD A,L
AE4C LD L,A
AE4D LD A,(HL)
AE4E AND A
AE4F JR NZ,$AE57
AE51 XOR A Write 00 to C427.
AE52 LD ($C427),A
AE55 JR $AE5C Jump to AE5C.
AE57 LD A,$01 Write 01 to C427.
AE59 LD ($C427),A
AE5C LD A,($9C28) Return if 9C28 is not zero.
AE5F AND A
AE60 RET NZ
AE61 LD A,($9C2B) Jump to AE29 if 9C2B is not zero.
AE64 AND A
AE65 JR Z,$AE29
AE67 LD A,$1C Write 1C to;
AE69 LD ($AA0C),A
AE6C LD ($AA4C),A
AE6F CALL Start_1UP_Game_6 Call Start_1UP_Game_6.
AE72 CALL $AF1A Call AF1A.
AE75 CALL $AF1A Call AF1A.
This entry point is used by the routines at Start_1UP_Game and Start_2UP_Game.
AE78 RET Return.
AE79 RET
This entry point is used by the routines at ABC8, Start_1UP_Game and Start_2UP_Game.
AE7A LD A,$19
AE7C LD ($AA0C),A
AE7F LD A,$7A
AE81 LD ($AA18),A
AE84 XOR A
AE85 LD ($AA0B),A
AE88 LD ($AA16),A
AE8B LD ($C427),A
AE8E CALL $95D4
AE91 CALL $BF13
AE94 LD A,($AA0D)
AE97 AND A
AE98 JR Z,$AE8E
AE9A RET
This entry point is used by the routines at Start_1UP_Game and Start_2UP_Game.
AE9B RET
AE9C RET
This entry point is used by the routines at ABC8, Start_1UP_Game and Start_2UP_Game.
AE9D LD A,$19
AE9F LD ($AA4C),A
AEA2 LD A,$7A
AEA4 LD ($AA58),A
AEA7 XOR A
AEA8 LD ($AA4B),A
AEAB LD ($AA56),A
AEAE INC A
AEAF LD ($C427),A
AEB2 CALL $95D4
AEB5 CALL $BF13
AEB8 LD A,($AA4D)
AEBB AND A
AEBC JR Z,$AEB2
AEBE RET
Prev: AD9C Up: Map Next: AEBF