1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00

Use new decls

git-svn-id: svn://svn.cc65.org/cc65/trunk@2779 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-12-17 09:28:28 +00:00
parent bfc4e54c41
commit ae8c0dc667
2 changed files with 12 additions and 13 deletions

View File

@ -22,7 +22,7 @@
; Driver signature ; Driver signature
.byte $6A, $6F, $79 ; "joy" .byte $6A, $6F, $79 ; "joy"
.byte $00 ; Driver API version number .byte JOY_API_VERSION ; Driver API version number
; Button state masks (8 values) ; Button state masks (8 values)
@ -64,8 +64,7 @@ JOY_COUNT = 2 ; Number of joysticks we support
INSTALL: INSTALL:
lda #<JOY_ERR_OK lda #<JOY_ERR_OK
ldx #>JOY_ERR_OK ldx #>JOY_ERR_OK
; rts ; Run into UNINSTALL instead
; rts ; Run into DEINSTALL instead
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
; UNINSTALL routine. Is called before the driver is removed from memory. ; UNINSTALL routine. Is called before the driver is removed from memory.

View File

@ -22,7 +22,7 @@
; Driver signature ; Driver signature
.byte $65, $6d, $64 ; "emd" .byte $65, $6d, $64 ; "emd"
.byte $00 ; EM API version number .byte EMD_API_VERSION ; EM API version number
; Jump table. ; Jump table.
@ -294,7 +294,7 @@ COPYFROM:
; Copy the remainder of the page ; Copy the remainder of the page
@L2: ldy #EM_COPY_COUNT @L2: ldy #EM_COPY::COUNT
lda (ptr3),y ; Get bytes in last page lda (ptr3),y ; Get bytes in last page
beq @L4 beq @L4
sta tmp1 sta tmp1
@ -338,7 +338,7 @@ COPYTO:
; Copy the remainder of the page ; Copy the remainder of the page
@L2: ldy #EM_COPY_COUNT @L2: ldy #EM_COPY::COUNT
lda (ptr3),y ; Get bytes in last page lda (ptr3),y ; Get bytes in last page
beq @L4 beq @L4
sta tmp1 sta tmp1
@ -405,21 +405,21 @@ setup:
sta ptr3 sta ptr3
stx ptr3+1 ; Save the passed em_copy pointer stx ptr3+1 ; Save the passed em_copy pointer
ldy #EM_COPY_OFFS ldy #EM_COPY::OFFS
lda (ptr3),y lda (ptr3),y
sta ptr1 sta ptr1
ldy #EM_COPY_PAGE ldy #EM_COPY::PAGE
lda (ptr3),y lda (ptr3),y
sta ptr1+1 ; From sta ptr1+1 ; From
ldy #EM_COPY_BUF ldy #EM_COPY::BUF
lda (ptr3),y lda (ptr3),y
sta ptr2 sta ptr2
iny iny
lda (ptr3),y lda (ptr3),y
sta ptr2+1 ; To sta ptr2+1 ; To
ldy #EM_COPY_COUNT+1 ldy #EM_COPY::COUNT+1
lda (ptr3),y ; Get number of pages lda (ptr3),y ; Get number of pages
sta tmp1 sta tmp1
rts rts