Better screen clear

This commit is contained in:
Pecusx
2024-08-11 18:20:57 +02:00
parent f13b7e5c71
commit 018ee7d318
4 changed files with 595 additions and 591 deletions
+4 -2
View File
@@ -159,7 +159,7 @@ CopyLoop
rts
.endp
.proc ClearScreen
ldy #WORLD_LENGTH ; TODO: shouldn't be -1?
ldy #44 ; visible screen len
lda #0
ClearLoop
sta screen+$700,y
@@ -167,8 +167,10 @@ ClearLoop
sta screen+$500,y
sta screen+$400,y
sta screen+$300,y
sta screen+$200,y
sta screen+$100,y
dey
bpl ClearLoop
bne ClearLoop
rts
.endp
;-----------------------------------------------