From: cuz Date: Mon, 2 Feb 2004 12:26:50 +0000 (+0000) Subject: Working on the mouse stuff X-Git-Tag: V2.12.0~941 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0250724a1c38c997c595cec3d3c3be02bfb5b54;p=cc65 Working on the mouse stuff git-svn-id: svn://svn.cc65.org/cc65/trunk@2879 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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