Prev: E4CC Up: Map Next: E59E
E57F: Clear Buffer
Clears the screen buffer, by pushing zeroes on the stack.
ClearBuffer E57F LD ($5CDA),SP Remember the stack pointer.
E583 LD SP,$F1BB The stack starts just past the screen buffer.
E586 LD B,$80 There are 80 rows.
E588 LD DE,$0000 The fill value is zero.
ClearBuffer_Row E58B PUSH DE Fill one row with zero.
E58C PUSH DE
E58D PUSH DE
E58E PUSH DE
E58F PUSH DE
E590 PUSH DE
E591 PUSH DE
E592 PUSH DE
E593 PUSH DE
E594 PUSH DE
E595 PUSH DE
E596 PUSH DE
E597 DJNZ ClearBuffer_Row The next row.
E599 LD SP,($5CDA) Bring the stack pointer back.
E59D RET Return.
Prev: E4CC Up: Map Next: E59E