mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 06:39:40 +02:00
Faster clearscreen
This commit is contained in:
+15
-6
@@ -641,13 +641,22 @@ EndPut4x4
|
||||
;--------------------------------------------------
|
||||
.proc ClearScreen
|
||||
;--------------------------------------------------
|
||||
mwa #display temp
|
||||
Go ldy #0
|
||||
@ lda #$ff
|
||||
ldy #<display
|
||||
lda #0
|
||||
sta temp
|
||||
lda #>display
|
||||
sta temp+1
|
||||
Go
|
||||
loop lda #$ff
|
||||
sta (temp),y
|
||||
inw temp
|
||||
cpw temp #display+screenheight*screenBytes+1
|
||||
bne @-
|
||||
iny
|
||||
bne @+
|
||||
inc temp+1
|
||||
@ cpy #<(display+screenheight*screenBytes+1)
|
||||
bne loop
|
||||
lda temp+1
|
||||
cmp #>(display+screenheight*screenBytes+1)
|
||||
bne loop
|
||||
rts
|
||||
.endp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user