]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm510/cbm510-stdjoy.s
The VIC20 doesn't have PALFLAG (Stefan Haubenthal)
[cc65] / libsrc / cbm510 / cbm510-stdjoy.s
index 5f5a26b15b60075f9cf6d53bc75c7e6485009a9c..82962c35d19d053ec488b8d6c72efb156ce040cf 100644 (file)
@@ -11,7 +11,8 @@
        .include        "joy-kernel.inc"
         .include        "joy-error.inc"
         .include        "cbm510.inc"
-
+        .include        "extzp.inc"
+                                   
         .macpack        generic
 
 
@@ -95,13 +96,13 @@ READ:   ldx     #$0F            ; Switch to the system bank
 
 ; Get the direction bits
 
-       ldy     #CIA_PRB
+       ldy     #CIA::PRB
        lda     (cia2),y        ; Read joystick inputs
        sta     tmp1
 
 ; Get the fire bits
 
-        ldy     #CIA_PRA
+        ldy     #CIA::PRA
        lda     (cia2),y
 
 ; Make the result value