fix clrscr so it doesnt wipe sprite pointers

This commit is contained in:
mrdudz
2015-10-01 17:16:02 +02:00
parent 5ea842b88b
commit 23473641f4

View File

@@ -12,9 +12,10 @@ soft80_kclrscr:
ldx #$00 ldx #$00
lp1: lp1:
.repeat $20,page .repeat $1f,page
sta soft80_bitmap+(page*$100),x sta soft80_bitmap+(page*$100),x
.endrepeat .endrepeat
sta soft80_bitmap+$1e40,x
inx inx
bne lp1 bne lp1
@@ -29,9 +30,10 @@ lp1:
;ldx #$00 ;ldx #$00
lp2: lp2:
.repeat $4,page sta soft80_vram,x
sta soft80_vram+(page*$100),x sta soft80_vram+$100,x
.endrepeat sta soft80_vram+$200,x
sta soft80_vram+$2e8,x
inx inx
bne lp2 bne lp2
@@ -40,9 +42,10 @@ lp2:
lda __bgcolor lda __bgcolor
;ldx #$00 ;ldx #$00
lp3: lp3:
.repeat $4,page sta soft80_colram,x
sta soft80_colram+(page*$100),x sta soft80_colram+$100,x
.endrepeat sta soft80_colram+$200,x
sta soft80_colram+$2e8,x
inx inx
bne lp3 bne lp3