]> git.sur5r.net Git - cc65/commitdiff
Use new decls
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 17 Dec 2003 09:28:28 +0000 (09:28 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 17 Dec 2003 09:28:28 +0000 (09:28 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2779 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos/devel/geos-stdjoy.s
libsrc/geos/devel/geos-vdc.s

index d525e7c0530f0587431db873cb2c25725d95a6a0..8b654bc9c72d34454bab50cf17e5c3a11b558a9a 100644 (file)
 ; Header. Includes jump table
 
 .segment        "JUMPTABLE"
-
+                                            
 ; Driver signature
 
         .byte   $6A, $6F, $79          ; "joy"
-        .byte   $00                     ; Driver API version number
+        .byte   JOY_API_VERSION                ; Driver API version number
 
 ; Button state masks (8 values)
 
@@ -64,8 +64,7 @@ JOY_COUNT       = 2             ; Number of joysticks we support
 INSTALL:
         lda     #<JOY_ERR_OK
         ldx     #>JOY_ERR_OK
-
-;      rts                     ; Run into DEINSTALL instead
+;      rts                     ; Run into UNINSTALL instead
 
 ; ------------------------------------------------------------------------
 ; UNINSTALL routine. Is called before the driver is removed from memory.
index 6318ff88c602c28be53aa4891ae3380450d71963..dda119b090c9ecbb95261505c9b1d37e1fc35e8f 100644 (file)
@@ -22,7 +22,7 @@
 ; Driver signature
 
         .byte   $65, $6d, $64           ; "emd"
-        .byte   $00                     ; EM API version number
+        .byte   EMD_API_VERSION                ; EM API version number
 
 ; Jump table.
 
@@ -293,8 +293,8 @@ COPYFROM:
         bne     @L1
 
 ; Copy the remainder of the page
-
-@L2:    ldy     #EM_COPY_COUNT
+                
+@L2:    ldy     #EM_COPY::COUNT
         lda     (ptr3),y                ; Get bytes in last page
         beq     @L4
         sta    tmp1
@@ -338,7 +338,7 @@ COPYTO:
 
 ; Copy the remainder of the page
 
-@L2:    ldy     #EM_COPY_COUNT
+@L2:    ldy     #EM_COPY::COUNT
         lda     (ptr3),y                ; Get bytes in last page
         beq     @L4
         sta    tmp1
@@ -405,22 +405,22 @@ setup:
        sta     ptr3
         stx     ptr3+1                  ; Save the passed em_copy pointer
 
-        ldy     #EM_COPY_OFFS
+        ldy     #EM_COPY::OFFS
         lda     (ptr3),y
         sta     ptr1
-        ldy     #EM_COPY_PAGE
+        ldy     #EM_COPY::PAGE
         lda     (ptr3),y
         sta     ptr1+1                  ; From
 
-        ldy     #EM_COPY_BUF
+        ldy     #EM_COPY::BUF
         lda     (ptr3),y
         sta     ptr2
         iny
         lda     (ptr3),y
         sta     ptr2+1                  ; To
 
-       ldy     #EM_COPY_COUNT+1
+       ldy     #EM_COPY::COUNT+1
         lda     (ptr3),y                ; Get number of pages
-        sta     tmp1
+        sta     tmp1     
        rts