]> git.sur5r.net Git - cc65/commitdiff
Working on the mouse stuff
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Feb 2004 12:26:50 +0000 (12:26 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Feb 2004 12:26:50 +0000 (12:26 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2879 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/mouse/Makefile
libsrc/mouse/mouse-kernel.s

index 4e0b3077ee919d7003f67d66e89c73059ccf0398..8b098b9aed46510ed68ab3385f767e951693c358 100644 (file)
 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
index 48bfc07a88c1d32464dca31c1ae590184705cee7..85acdfbf8b01c78a51e7ffc98cab9ca7cc253407 100644 (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