]> git.sur5r.net Git - cc65/blob - libsrc/atari5200/gotoxy.s
Merge pull request #122 from groessler/a5200
[cc65] / libsrc / atari5200 / gotoxy.s
1 ;
2 ; Christian Groessler, 13-Mar-2014
3 ;
4 ; void gotoxy (unsigned char x, unsigned char y);
5 ;
6
7         .include "atari5200.inc"
8
9         .export         _gotoxy
10         .import         popa
11         .import         setcursor
12
13 _gotoxy:                        ; Set the cursor position
14         sta     ROWCRS_5200     ; Set Y
15         jsr     popa            ; Get X
16         sta     COLCRS_5200     ; Set X
17         jmp     setcursor