mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
And faster clearscreen :)
This commit is contained in:
+4
-5
@@ -646,16 +646,15 @@ EndPut4x4
|
|||||||
sta temp
|
sta temp
|
||||||
lda #>display
|
lda #>display
|
||||||
sta temp+1
|
sta temp+1
|
||||||
Go
|
Go lda #$ff
|
||||||
loop lda #$ff
|
loop sta (temp),y
|
||||||
sta (temp),y
|
|
||||||
iny
|
iny
|
||||||
bne @+
|
bne @+
|
||||||
inc temp+1
|
inc temp+1
|
||||||
@ cpy #<(display+screenheight*screenBytes+1)
|
@ cpy #<(display+screenheight*screenBytes+1)
|
||||||
bne loop
|
bne loop
|
||||||
lda temp+1
|
ldx temp+1
|
||||||
cmp #>(display+screenheight*screenBytes+1)
|
cpx #>(display+screenheight*screenBytes+1)
|
||||||
bne loop
|
bne loop
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|||||||
+4
-14
@@ -590,30 +590,20 @@ EndPut4x4
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc ClearScreen
|
.proc ClearScreen
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
mwa #displayC64 temp
|
|
||||||
ldy #0
|
|
||||||
@ lda #$ff
|
|
||||||
sta (temp),y
|
|
||||||
inw temp
|
|
||||||
cpw temp #displayC64+screenheight*screenBytes+1
|
|
||||||
bne @-
|
|
||||||
rts
|
|
||||||
|
|
||||||
ldy #<displayC64
|
ldy #<displayC64
|
||||||
lda #0
|
lda #0
|
||||||
sta temp
|
sta temp
|
||||||
lda #>displayC64
|
lda #>displayC64
|
||||||
sta temp+1
|
sta temp+1
|
||||||
Go
|
Go lda #$ff
|
||||||
loop lda #$ff
|
loop sta (temp),y
|
||||||
sta (temp),y
|
|
||||||
iny
|
iny
|
||||||
bne @+
|
bne @+
|
||||||
inc temp+1
|
inc temp+1
|
||||||
@ cpy #<(displayC64+screenheight*screenBytes+1)
|
@ cpy #<(displayC64+screenheight*screenBytes+1)
|
||||||
bne loop
|
bne loop
|
||||||
lda temp+1
|
ldx temp+1
|
||||||
cmp #>(displayC64+screenheight*screenBytes+1)
|
cpx #>(displayC64+screenheight*screenBytes+1)
|
||||||
bne loop
|
bne loop
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user