Prev: CC59 Up: Map Next: CC8D
CC5A: Display The "Life" Images
Set up counter=$05 screen buffer=$50B6.
Life_Images CC5A LD B,$05 B=05.
CC5C LD HL,$50B6 HL=50B6.
Life_Images_Loop CC5F PUSH BC Push the counter onto the stack.
CC60 LD DE,$5B00 DE=BufferGeneral.
CC63 CALL Copy_RoutineLoop Call Copy_RoutineLoop.
CC66 INC HL Increase HL by two.
CC67 INC HL
CC68 POP BC Restore the counter off the stack.
CC69 DJNZ Life_Images_Loop Decrease counter by one and loop back to Life_Images_Loop until counter is zero.
CC6B LD A,($CC59) If Lives are zero then return.
CC6E AND A
CC6F RET Z
CC70 CP $06 If Lives is more than or equal to "06" then return.
CC72 RET NC
CC73 LD B,A
CC74 LD HL,$50B6
Draw_LivesLoop CC77 PUSH BC
CC78 CALL Draw_Lives_Images
CC7B INC HL
CC7C INC HL
CC7D POP BC
CC7E DJNZ Draw_LivesLoop
CC80 RET Return.
Draw_Lives_Images CC81 LD DE,$FFB8 Point at the Lives_Image and call Copy_Routine.
Copy_RoutineLoop CC84 PUSH HL
CC85 LD BC,$1802
CC88 CALL Copy_Routine
CC8B POP HL
CC8C RET Return.
Prev: CC59 Up: Map Next: CC8D