1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 22:18:27 +00:00

Added library reference mouse_libref to MOU interface.

This commit is contained in:
Oliver Schmidt
2013-06-01 00:53:17 +02:00
parent 23650cb946
commit 744abda24f
12 changed files with 52 additions and 12 deletions
+10 -1
View File
@@ -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