1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Unwind clearscreen

This commit is contained in:
Dave Plummer 2023-10-13 11:45:55 -07:00
parent b3dad85de2
commit 2fa6d453a3

View File

@ -206,8 +206,22 @@ _ClearScreen:
stx dest_hi
ldy #0
: sta (dest), y
iny
: sta (dest), y ; Loop unwound by a factor of 8, which means our iny before the branchh
iny ; will still work as it's on a page crossing boundary.
sta (dest), y ; This will avoid most of the overhead of the branch.
iny
sta (dest), y
iny
sta (dest), y
iny
sta (dest), y
iny
sta (dest), y
iny
sta (dest), y
iny
sta (dest), y
iny
bne :-
inc dest_hi