Prev: EC3A Up: Map Next: ECCA
ECBD: 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 ECBD LD HL,$EDC6 Point HL at the collected flag of the first entry.
ECC0 LD B,$14 Set the number of entries to clear to 14.
Clear_Collected_Flags_Loop ECC2 LD (HL),$00 Clear the collected flag.
ECC4 INC HL Move on to the next entry.
ECC5 INC HL
ECC6 INC HL
ECC7 DJNZ Clear_Collected_Flags_Loop Loop back until all the flags have been cleared.
ECC9 RET Return.
Prev: EC3A Up: Map Next: ECCA