From: mrdudz Date: Thu, 1 Oct 2015 15:16:02 +0000 (+0200) Subject: fix clrscr so it doesnt wipe sprite pointers X-Git-Tag: V2.16~210^2~44 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23473641f474e33f2062b0aa4c93b66b8187ab25;p=cc65 fix clrscr so it doesnt wipe sprite pointers --- diff --git a/libsrc/c64/soft80_kclrscr.s b/libsrc/c64/soft80_kclrscr.s index ff1a14a07..c2f09f76e 100644 --- a/libsrc/c64/soft80_kclrscr.s +++ b/libsrc/c64/soft80_kclrscr.s @@ -12,9 +12,10 @@ soft80_kclrscr: ldx #$00 lp1: - .repeat $20,page + .repeat $1f,page sta soft80_bitmap+(page*$100),x .endrepeat + sta soft80_bitmap+$1e40,x inx bne lp1 @@ -29,9 +30,10 @@ lp1: ;ldx #$00 lp2: - .repeat $4,page - sta soft80_vram+(page*$100),x - .endrepeat + sta soft80_vram,x + sta soft80_vram+$100,x + sta soft80_vram+$200,x + sta soft80_vram+$2e8,x inx bne lp2 @@ -40,9 +42,10 @@ lp2: lda __bgcolor ;ldx #$00 lp3: - .repeat $4,page - sta soft80_colram+(page*$100),x - .endrepeat + sta soft80_colram,x + sta soft80_colram+$100,x + sta soft80_colram+$200,x + sta soft80_colram+$2e8,x inx bne lp3