Set pixels 0-233 to the value in A, starting at the pixel pointed to by SC.
Arguments:AThe value to store in pixels 1-233 (the only value thatis actually used is A = 0, which clears those pixels) Returns:YY is set to 0 Other entry points:SC5Contains an RTS
Zero memory from page X to page &75 (inclusive).
Arguments:XThe page of screen memory from which to start clearing
.LYN
Code variation 2 of 2Specific to an individual platform
Tap on a block to expand it, and tap it again to revert.
LDY#233\ Set up a counter in Y to count down from pixel 233.EE2STA(SC),Y\ Store A in the Y-th byte after the address pointed to\ by SCDEY\ Decrement YBNEEE2\ Loop back until Y is zero.SC5
JSRZES1\ Call ZES1 to zero-fill the page in XINX\ Increment X to point to the next page in memoryCPX#&76\ Loop back to zero the next page until we have reachedBNELYN\ page &76 (so page &75 is the last page to be zeroed)