Prev: 45475 Up: Map Next: 45496
45485: Clear Screen
Used by the routine at InitialiseGame.
Resets the whole display: the attributes are set to bright white on black and the pixels are cleared.
Before After
clear-screen-before clear-screen-after
ClearScreen 45485 CALL ResetAttributes Set every attribute using ResetAttributes.
45488 LD HL,16384 Point HL at the start of the display file.
45491 LD BC,6144 There are 6144 bytes of pixels to clear.
45494 JR FillMemory Clear them using FillMemory.
Prev: 45475 Up: Map Next: 45496