Prev: A240 Up: Map Next: A311
A2CE: Draw Lives
Used by the routines at StartGame and PreparePlayer.
DrawLives A2CE PUSH IX
A2D0 LD IX,$A17D
A2D4 LD A,($5E00)
A2D7 RLCA
A2D8 AND $30
A2DA OR $01
A2DC LD (IX+$00),A
A2DF LD (IX+$05),$47
A2E3 LD HL,$8DC8
A2E6 LD (IX+$03),L
A2E9 LD (IX+$04),H
A2EC LD A,($5E21)
A2EF LD C,A
A2F0 LD B,$03
DrawLives_0 A2F2 PUSH BC
A2F3 CALL ClearSprite
A2F6 LD A,C
A2F7 AND A
A2F8 JR Z,DrawLives_1
A2FA CALL DrawEntity
DrawLives_1 A2FD LD A,(IX+$03)
A300 ADD A,$10
A302 LD (IX+$03),A
A305 POP BC
A306 DEC C
A307 JP P,DrawLives_2
A30A LD C,$00
DrawLives_2 A30C DJNZ DrawLives_0
A30E POP IX
A310 RET
Prev: A240 Up: Map Next: A311