]> git.sur5r.net Git - cc65/blob - libsrc/mouse/mouse_move.s
Two fixes from Stefan Haubenthal
[cc65] / libsrc / mouse / mouse_move.s
1 ;
2 ; Ullrich von Bassewitz, 2003-12-30
3 ;
4 ; void __fastcall__ mouse_move (int x, int y);
5 ; /* Set the mouse cursor to the given position. If a mouse cursor is defined
6 ;  * and currently visible, the mouse cursor is also moved.
7 ;  * NOTE: This function does not check if the given position is valid and
8 ;  * inside the bounding box.
9 ;  */
10 ;
11
12         .import         ptr1: zp
13
14         .include        "mouse-kernel.inc"
15
16 .proc   _mouse_move
17
18         sta     ptr1
19         stx     ptr1+1                  ; Store x into ptr1
20         jsr     popax
21         jmp     mouse_move              ; Call the driver
22
23 .endproc
24
25
26
27
28