From f0250724a1c38c997c595cec3d3c3be02bfb5b54 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 2 Feb 2004 12:26:50 +0000 Subject: [PATCH] Working on the mouse stuff git-svn-id: svn://svn.cc65.org/cc65/trunk@2879 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/mouse/Makefile | 6 +++--- libsrc/mouse/mouse-kernel.s | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/libsrc/mouse/Makefile b/libsrc/mouse/Makefile index 4e0b3077e..8b098b9ae 100644 --- a/libsrc/mouse/Makefile +++ b/libsrc/mouse/Makefile @@ -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 diff --git a/libsrc/mouse/mouse-kernel.s b/libsrc/mouse/mouse-kernel.s index 48bfc07a8..85acdfbf8 100644 --- a/libsrc/mouse/mouse-kernel.s +++ b/libsrc/mouse/mouse-kernel.s @@ -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