Prev: 41536 Up: Map Next: 41745
41678: Draw Lives
Used by the routines at StartGame and PreparePlayer.
DrawLives 41678 PUSH IX
41680 LD IX,41341
41684 LD A,(24064)
41687 RLCA
41688 AND 48
41690 OR 1
41692 LD (IX+0),A
41695 LD (IX+5),71
41699 LD HL,36296
41702 LD (IX+3),L
41705 LD (IX+4),H
41708 LD A,(24097)
41711 LD C,A
41712 LD B,3
DrawLives_0 41714 PUSH BC
41715 CALL ClearSprite
41718 LD A,C
41719 AND A
41720 JR Z,DrawLives_1
41722 CALL DrawEntity
DrawLives_1 41725 LD A,(IX+3)
41728 ADD A,16
41730 LD (IX+3),A
41733 POP BC
41734 DEC C
41735 JP P,DrawLives_2
41738 LD C,0
DrawLives_2 41740 DJNZ DrawLives_0
41742 POP IX
41744 RET
Prev: 41536 Up: Map Next: 41745