mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
Added library reference joy_libref to JOY interface.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
; Common functions of the joystick API.
|
||||
;
|
||||
|
||||
.import joy_libref
|
||||
.importzp ptr1
|
||||
.interruptor joy_irq ; Export as IRQ handler
|
||||
|
||||
@@ -55,6 +56,15 @@ _joy_install:
|
||||
dey
|
||||
bpl @L0
|
||||
|
||||
; Set the library reference
|
||||
|
||||
ldy #JOY_HDR::LIBREF
|
||||
lda #<joy_libref
|
||||
sta (ptr1),y
|
||||
iny
|
||||
lda #>joy_libref
|
||||
sta (ptr1),y
|
||||
|
||||
; Copy the mask array
|
||||
|
||||
ldy #JOY_HDR::MASKS + .sizeof(JOY_HDR::MASKS) - 1
|
||||
|
||||
Reference in New Issue
Block a user