]> git.sur5r.net Git - cc65/blob - libsrc/tgi/tgi_gotoxy.s
Relocate register values outside structs, + more
[cc65] / libsrc / tgi / tgi_gotoxy.s
1 ;
2 ; Ullrich von Bassewitz, 22.06.2002
3 ;
4 ; void __fastcall__ tgi_gotoxy (int x, int y);
5 ; /* Set the current drawing pointer to the given position. */
6 ;
7
8         .include        "tgi-kernel.inc"
9
10         .import         popax
11
12 .proc   _tgi_gotoxy
13
14         sta     _tgi_cury               ; Y
15         stx     _tgi_cury+1
16         jsr     popax
17         sta     _tgi_curx               ; X
18         stx     _tgi_curx+1
19         rts
20
21 .endproc
22