Prev: BB8F Up: Map Next: BBAE
BB9F: Clear Buffers
Used by the routine at GameInitialisation.
Writes 00 to every address from GameOptions to SecurityCheck.
ClearBuffers BB9F LD HL,$9692 HL=GameOptions (starting address).
BBA2 LD BC,$02C8 BC=02C8 (counter).
This entry point is used by the routine at GameInitialisation.
ClearBuffers_Loop BBA5 LD (HL),$00 Writes 00 to the address held by HL.
BBA7 INC HL Increment HL by one.
BBA8 DEC BC Decrease the counter held in BC by one.
BBA9 LD A,B Keep looping back to ClearBuffers_Loop until the counter in BC is zero.
BBAA OR C
BBAB JR NZ,ClearBuffers_Loop
BBAD RET Return.
Prev: BB8F Up: Map Next: BBAE