Prev: 8E26 Up: Map Next: 8EE8
8E72: Routine at 8E72
Used by the routine at StartGame.
8E72 LD A,($8DB7)
8E75 AND A
8E76 RET Z
8E77 DEC A
8E78 LD B,A
8E79 PUSH BC
8E7A CALL $8EB4
8E7D LD A,($8D48)
8E80 AND $03
8E82 POP BC
8E83 CP B
8E84 JR Z,$8E88
8E86 JR NC,$8E79
8E88 ADD A,A
8E89 ADD A,A
8E8A ADD A,A
8E8B ADD A,A
8E8C LD HL,$8DB8
8E8F CALL PrintLine_9
8E92 LD ($8E70),HL
8E95 PUSH HL
8E96 POP IX
8E98 LD A,(IX+$01)
8E9B XOR $01
8E9D LD (IX+$01),A
8EA0 LD A,(IX+$02)
8EA3 PUSH AF
8EA4 SUB $05
8EA6 LD (IX+$02),A
8EA9 CALL $9910
8EAC POP AF
8EAD LD (IX+$02),A
8EB0 CALL $C151
8EB3 RET
This entry point is used by the routines at 8D4C, 93F8, 974A and StartGame.
8EB4 LD DE,($8D48)
8EB8 LD HL,($8D4A)
8EBB LD A,(HL)
8EBC ADD A,$05
8EBE LD B,A
8EBF LD A,($8ED9)
8EC2 ADD A,B
8EC3 ADD A,E
8EC4 LD E,A
8EC5 LD A,(HL)
8EC6 CPL
8EC7 ADD A,$16
8EC9 ADD A,D
8ECA ADD A,L
8ECB LD D,A
8ECC LD ($8D48),DE
8ED0 INC HL
8ED1 LD A,H
8ED2 AND $9F
8ED4 LD H,A
8ED5 LD ($8D4A),HL
8ED8 RET
8ED9 LD B,$36
8EDB NOP
8EDC INC HL
8EDD DJNZ $8EDA
8EDF RET
8EE0 DEC D
8EE1 RET NZ
8EE2 RET PE
8EE3 ADC A,(HL)
8EE4 DJNZ $8E75
8EE6 JR C,$8E77
Prev: 8E26 Up: Map Next: 8EE8