Prev: 52052 Up: Map Next: 52074
52060: 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 52060 LD HL,16384 Start at the beginning of the display file.
52063 LD DE,16385 Move on to the next byte of the display file.
52066 LD BC,6144 Set the number of bytes to copy, which is the size of the display file.
52069 LD (HL),0 Clear the first byte.
52071 LDIR Copy it through the rest.
52073 RET Return.
Prev: 52052 Up: Map Next: 52074