]> git.sur5r.net Git - cc65/commitdiff
support for 40/80 column modes
authorizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Oct 2001 17:07:19 +0000 (17:07 +0000)
committerizydorst <izydorst@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 27 Oct 2001 17:07:19 +0000 (17:07 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1091 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/mousesprite/mouse.s

index 9fb22714ae7621f4d327adc49e54d55f906f826d..f71b67b1f06580c785382699c1b6ec72fe097d39 100644 (file)
@@ -37,11 +37,19 @@ _mouse_init:
        sta     mouseLeft+1
        lda     #199
        sta     mouseBottom
-       lda     #<319
+       lda     graphMode
+       bpl     _mse_screen320
+
+       lda     #<639                   ; 80 columns on C128
+       ldx     #>639
+       bne     _mse_storex
+_mse_screen320:
+       lda     #<319                   ; 40 columns on C64/C128
+       ldx     #>319
+_mse_storex:
        sta     mouseRight
-       lda     #>319
-       sta     mouseRight+1
-
+       stx     mouseRight+1
+_mse_initend:
        lda     #0
 ; --------------------------------------------------------------------------
 ;