]> git.sur5r.net Git - cc65/commitdiff
Clear bottom line when scrolling.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Mon, 23 Feb 2015 18:06:22 +0000 (19:06 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Mon, 23 Feb 2015 18:06:22 +0000 (19:06 +0100)
Fix provided by Jeff Tranter.

libsrc/osic1p/cputc.s

index 47969df152d66c12cb364259ca8418ef1621f94a..058964573190ae7df27ff00157aa9bc039a4237f 100644 (file)
@@ -58,6 +58,12 @@ scroll: lda     SCRNBASE+$00A5,x
         sta     SCRNBASE+$0285,x
         inx
         bne scroll
+bottom:
+        lda     #' '            ; Clear bottom line of screen
+        sta     SCRNBASE+$0385,x
+        inx
+        cpx     #SCR_LINELEN+1
+        bne     bottom
 
 plot:   ldy     CURS_Y
         lda     ScrLo,y