1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-30 08:57:49 +00:00

Working on the mouse stuff

git-svn-id: svn://svn.cc65.org/cc65/trunk@2879 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2004-02-02 12:26:50 +00:00
parent 5ed647b99e
commit f0250724a1
2 changed files with 11 additions and 4 deletions

View File

@ -20,11 +20,11 @@
C_OBJS = mouse_load.o
S_OBJS = mouse-kernel.o \
mouse_hide.o \
mouse_info.o \
mouse_ioctl.o \
mouse_pos.o
mouse_pos.o \
mouse_show.o
#--------------------------------------------------------------------------
# Targets

View File

@ -19,6 +19,8 @@
.bss
_mouse_drv: .res 2 ; Pointer to driver
_mouse_hidden: .res 1 ; Mouse visibility flag
; Jump table for the driver functions.
.data
mouse_vectors:
@ -60,6 +62,11 @@ _mouse_install:
dey
bpl @L0
; Reset flags
lda #1
sta _mouse_hidden
; Copy the jump vectors
ldy #MOUSE_HDR::JUMPTAB
@ -70,7 +77,7 @@ _mouse_install:
cpy #(MOUSE_HDR::JUMPTAB + .sizeof(MOUSE_HDR::JUMPTAB))
bne @L1
jmp mouse_install ; Call driver install routine
jsr mouse_install ; Call driver install routine
ldy mouse_irq+2 ; Check high byte of IRQ vector
beq @L2 ; Jump if vector invalid