mirror of
https://github.com/cc65/cc65.git
synced 2026-04-25 06:17:58 +00:00
Added library reference mouse_libref to MOU interface.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
; Common functions of the mouse driver API.
|
||||
;
|
||||
|
||||
.import return0, popsreg, incsp2
|
||||
.import return0, popsreg, incsp2, mouse_libref
|
||||
.importzp sreg, ptr1, tmp1, tmp2
|
||||
.interruptor mouse_irq ; Export as IRQ handler
|
||||
|
||||
@@ -64,6 +64,15 @@ _mouse_install:
|
||||
dey
|
||||
bpl @L0
|
||||
|
||||
; Set the library reference
|
||||
|
||||
ldy #MOUSE_HDR::LIBREF
|
||||
lda #<mouse_libref
|
||||
sta (ptr1),y
|
||||
iny
|
||||
lda #>mouse_libref
|
||||
sta (ptr1),y
|
||||
|
||||
; Reset flags
|
||||
|
||||
lda #1
|
||||
|
||||
Reference in New Issue
Block a user