shorter ClearScreen
This commit is contained in:
+8
-9
@@ -464,17 +464,16 @@ endcircleloop
|
|||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc ClearScreen
|
.proc ClearScreen
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
mwa #display temp
|
||||||
lda #$ff
|
ldy #0
|
||||||
ldx #0
|
@ lda #$ff
|
||||||
@
|
sta (temp),y
|
||||||
:31 sta display+($100*#),x
|
inw temp
|
||||||
sta display+$1e50,x ; this is so no space outside of the screen is cleared
|
cpw temp #display+screenheight*screenBytes+1
|
||||||
; of course we are clearing $100 instead of $50, but who cares :]
|
|
||||||
inx
|
|
||||||
bne @-
|
bne @-
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
|
|
||||||
;-------------------------------*------------------
|
;-------------------------------*------------------
|
||||||
.proc placetanks
|
.proc placetanks
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user