]> git.sur5r.net Git - cc65/blobdiff - libsrc/mouse/mouse_move.s
Change MOVE routine calling conventions
[cc65] / libsrc / mouse / mouse_move.s
index f3052c1eee20532a0b98b3a5671c9f937a878dc9..2245221f6d50dab204177356512dc96948957a96 100644 (file)
@@ -9,16 +9,15 @@
 ;  */
 ;
 
-        .import         ptr1: zp
+        .import         incsp2
+        .import         ptr1: zp                            
 
         .include        "mouse-kernel.inc"
 
 .proc   _mouse_move
 
-        sta     ptr1
-        stx     ptr1+1                  ; Store x into ptr1
-        jsr     popax
-        jmp     mouse_move              ; Call the driver
+        jsr     mouse_move              ; Call the driver
+        jmp     incsp2                  ; Drop the parameter
 
 .endproc