]> git.sur5r.net Git - cc65/commitdiff
Fixed a video problem: When switching the display, the SCROLL flag gets
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 15 Feb 2010 18:32:15 +0000 (18:32 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 15 Feb 2010 18:32:15 +0000 (18:32 +0000)
cleared, which in turn causes the display to scroll when a character is output
in the lower right corner.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4590 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/c128/videomode.s

index 7825eca2c44f6301027c1149852e3f5f251c622a..fd37b7b6ac29a2e565a444f5f5ff0fdeb1af927c 100644 (file)
@@ -22,6 +22,8 @@
         jsr     SWAPPER                 ; Toggle the mode
        lda     #14
                jsr     BSOUT                   ; Switch to lower case chars
+        lda     #$C0
+        sta     SCROLL                  ; Disable scrolling
         pla                             ; Get old mode into A
 
 ; Done, old mode is in A