Prev: 9A72 Up: Map Next: 9A8A
9A7E: Clear Pixels
Used by the routines at ShowTitleScreen and RunGame.
Clears all of the pixels on the screen.
ClearPixels 9A7E LD HL,$4000 Use the start of the display file.
ClearPixels_Loop 9A81 LD (HL),$00 Clear a byte.
9A83 INC HL Move on to the next one.
9A84 LD A,H Fetch the high byte of the address.
9A85 CP $58 Jump back to ClearPixels_Loop if the whole display file has not been cleared.
9A87 JR NZ,ClearPixels_Loop
9A89 RET Return.
Prev: 9A72 Up: Map Next: 9A8A