Prev: 9F5E Up: Map Next: A008
9F6A: Routine at 9F6A
9F6A LD A,H
9F6B ADD A,$10
9F6D LD H,A
9F6E JR $9F87
This entry point is used by the routine at 8258.
9F70 CALL $B1E2
9F73 RET NZ
9F74 LD HL,$A068
9F77 LD DE,$6108
9F7A LD BC,$0090
9F7D LDIR
9F7F LD A,($5E42)
9F82 LD H,A
9F83 LD A,($5E40)
9F86 LD L,A
9F87 LD A,($607B)
9F8A ADD A,A
9F8B ADD A,A
9F8C ADD A,A
9F8D SUB H
9F8E JP P,$9F93
9F91 NEG
9F93 CP $10
9F95 JR C,$9F6A
9F97 LD A,($6093)
9F9A ADD A,A
9F9B ADD A,A
9F9C ADD A,A
9F9D SUB H
9F9E JP P,$9FA3
9FA1 NEG
9FA3 CP $10
9FA5 JR C,$9F6A
9FA7 SRL H
9FA9 SRL H
9FAB SRL H
9FAD LD ($610A),HL
9FB0 LD BC,$0040
9FB3 CALL $A002
9FB6 LD ($616A),HL
9FB9 LD BC,$0008
9FBC CALL $A002
9FBF LD ($6182),HL
9FC2 LD BC,$0040
9FC5 CALL $A002
9FC8 LD ($613A),HL
9FCB LD A,($5EA0)
9FCE CP $63
9FD0 JR Z,$9FD3
9FD2 INC A
9FD3 LD ($5EA0),A
9FD6 AND A
9FD7 JR Z,$9FEA
9FD9 AND $03
9FDB JR NZ,$9FEA
9FDD LD HL,$5EA1
9FE0 INC (HL)
9FE1 LD DE,$BAB4
9FE4 CALL $B9BC
9FE7 CALL DisplayPlayerLives
9FEA LD A,($5EA0)
9FED CP $10
9FEF CALL NC,$9FFF
9FF2 RLCA
9FF3 RLCA
9FF4 CPL
9FF5 AND $3C
9FF7 ADD A,$51
9FF9 LD ($617F),A
9FFC JP PrintPlayerLevels
9FFF LD A,$FF
A001 RET
This entry point is used by the routines at 9020, AD36, B3E8, B6AE and B731.
A002 ADD HL,BC
A003 LD A,H
A004 AND $1F
A006 LD H,A
A007 RET
Prev: 9F5E Up: Map Next: A008