Prev: 57773 Up: Map Next: 57885
57856: Copy Buffers To Screen
Used by the routine at StartGame.
Copies the pixels and the attributes of the screen buffer onto the screen, and then clears the buffer.
Before After CopyBuffersToScreen
copy-buffers-before copy-buffers-after
CopyBuffersToScreen 57856 CALL CopyPixelsToScreen Copy the pixels to the screen.
57859 CALL CopyAttributesToScreen Copy the attributes to the screen.
This entry point is used by the routines at StartGame, GameMenu and GameOver.
Clear the screen buffer.
ClearScreenBuffer 57862 LD HL,61844 Point HL at the end of the attribute buffer.
57865 LD A,(48123) Make the attribute from white ink and the colour in FlashColour, which is used for the paper.
57868 OR 71
57870 LD E,A
57871 LD D,A
57872 LD B,14 Fill the 14 rows of the attribute buffer with it.
57874 CALL FillBuffer
57877 LD HL,61508 Clear the 112 rows of the pixel buffer.
57880 LD DE,0
57883 LD B,112
Prev: 57773 Up: Map Next: 57885