]> git.sur5r.net Git - cc65/commitdiff
Removed an unwanted button mask table from a VIC-20 joystick driver.
authorGreg King <gregdk@users.sf.net>
Tue, 5 Sep 2017 20:56:20 +0000 (16:56 -0400)
committerGreg King <gregdk@users.sf.net>
Tue, 5 Sep 2017 20:56:20 +0000 (16:56 -0400)
It had put the jump table at the wrong place.  Programs crashed as soon as they tried to initiate the driver.

libsrc/vic20/joy/vic20-stdjoy.s

index bf10acce552894fc5b5102112f6a00ebb20082d4..67299cc1a8e34bd272968159b3170c747104fc79 100644 (file)
 
         .addr   $0000
 
-; Button state masks (8 values)
-
-        .byte   $02                     ; JOY_UP
-        .byte   $04                     ; JOY_DOWN
-        .byte   $08                     ; JOY_LEFT
-        .byte   $80                     ; JOY_RIGHT
-        .byte   $10                     ; JOY_FIRE
-        .byte   $00                     ; JOY_FIRE2 unavailable
-        .byte   $00                     ; Future expansion
-        .byte   $00                     ; Future expansion
-
 ; Jump table.
 
         .addr   INSTALL
@@ -128,5 +117,3 @@ READ:   lda     #$7F            ; mask for VIA2 JOYBIT: sw3
 
         ldx     #0
         rts
-
-