]> git.sur5r.net Git - cc65/blobdiff - libsrc/geos-common/drivers/mcbdefault.s
Some fine tuning of the mouse driver interface harmonization.
[cc65] / libsrc / geos-common / drivers / mcbdefault.s
index 5b58066852dd28c53d3bb3f070238d7264cfcda8..2576f6aadde002e76e4c09302957a0da8dd93251 100644 (file)
@@ -33,24 +33,30 @@ hide := MouseOff
 show := MouseUp
 
 ; --------------------------------------------------------------------------
-; Move the mouse pointer X position to the value in .XA. Always called with
-; interrupts disabled.
+; Prepare to move the mouse pointer. Always called with interrupts disabled.
 
-.proc   movex
+prep:
+        ; Fall through
 
-        rts
+; --------------------------------------------------------------------------
+; Draw the mouse pointer. Always called with interrupts disabled.
 
-.endproc
+draw:
+        ; Fall through
 
 ; --------------------------------------------------------------------------
-; Move the mouse pointer Y position to the value in .XA. Always called with
+; Move the mouse pointer X position to the value in .XA. Always called with
 ; interrupts disabled.
 
-.proc   movey
+movex:
+        ; Fall through
 
-        rts
+; --------------------------------------------------------------------------
+; Move the mouse pointer Y position to the value in .XA. Always called with
+; interrupts disabled.
 
-.endproc
+movey:
+        rts
 
 ; --------------------------------------------------------------------------
 ; Callback structure
@@ -60,7 +66,7 @@ show := MouseUp
 _mouse_def_callbacks:
         .addr   hide
         .addr   show
+        .addr   prep
+        .addr   draw
         .addr   movex
         .addr   movey
-
-