Prev: CB54 Up: Map Next: CB6A
CB5C: Clear Screen
Used by the routine at RunGame.
Clears the pixels of the screen, and the first of the attributes.
Before After ClearScreen
clear-screen-before clear-screen-after
ClearScreen CB5C LD HL,$4000 Start at the beginning of the display file.
CB5F LD DE,$4001 Move on to the next byte of the display file.
CB62 LD BC,$1800 Set the number of bytes to copy, which is the size of the display file.
CB65 LD (HL),$00 Clear the first byte.
CB67 LDIR Copy it through the rest.
CB69 RET Return.
Prev: CB54 Up: Map Next: CB6A