1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +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 C_OBJS = mouse_load.o
S_OBJS = mouse-kernel.o \ S_OBJS = mouse-kernel.o \
mouse_hide.o \
mouse_info.o \ mouse_info.o \
mouse_ioctl.o \ mouse_ioctl.o \
mouse_pos.o mouse_pos.o \
mouse_show.o
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
# Targets # Targets

View File

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