New joystick API

git-svn-id: svn://svn.cc65.org/cc65/trunk@1800 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-12-20 21:41:40 +00:00
parent a75591573c
commit 6a79a3b2d8
6 changed files with 141 additions and 57 deletions

View File

@@ -4,7 +4,7 @@
; Common functions of the joystick API.
;
.export _joy_install, _joy_deinstall
.export _joy_install, _joy_deinstall, _joy_masks
.importzp ptr1
@@ -58,7 +58,7 @@ _joy_install:
; Copy the mask array
ldy #JOY_MASKS + JOY_MASK_COUNT - 1
ldx #JOY_MASK_COUNT
ldx #JOY_MASK_COUNT-1
@L1: lda (ptr1),y
sta _joy_masks,x
dey