Prev: 60474 Up: Map Next: 60618
60605: Clear Collected Flags
Used by the routine at Run_Game.
Clears the collected flags of the sixteen extra lives and the four guardians, which are in the two tables that start at Extra_Life_Table. It is used when a new game starts.
Clear_Collected_Flags 60605 LD HL,60870 Point HL at the collected flag of the first entry.
60608 LD B,20 Set the number of entries to clear to 20.
Clear_Collected_Flags_Loop 60610 LD (HL),0 Clear the collected flag.
60612 INC HL Move on to the next entry.
60613 INC HL
60614 INC HL
60615 DJNZ Clear_Collected_Flags_Loop Loop back until all the flags have been cleared.
60617 RET Return.
Prev: 60474 Up: Map Next: 60618