Prev: CB77 Up: Map Next: CB89
CB81: Clear Screen Buffer
Used by the routines at GameMenu, ShowVictoryScreen, ShowGameOverScreen and BuildRoom.
Clears the screen buffer, in which the objects are drawn before they are copied to the screen.
ClearScreenBuffer CB81 LD BC,$1800 Set the number of bytes to clear, which is the size of the buffer.
CB84 LD HL,$D88F Start at the beginning of the buffer, which is ScreenBuffer.
CB87 JR FillMemory Jump to FillMemory to clear it.
View the equivalent code in;
Prev: CB77 Up: Map Next: CB89