]> git.sur5r.net Git - cc65/blob - libsrc/atari/gotoxy.s
added PAL/NTSC check for 1200xl + XL/XE systems
[cc65] / libsrc / atari / gotoxy.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; void gotoxy (unsigned char x, unsigned char y);
5 ;
6
7         .include "atari.inc"
8
9         .export         _gotoxy
10         .import         popa
11
12 _gotoxy:                        ; Set the cursor position
13         sta     ROWCRS          ; Set Y
14         jsr     popa            ; Get X
15         sta     COLCRS          ; Set X
16         lda     #0
17         sta     COLCRS+1        ;
18         rts