]> git.sur5r.net Git - cc65/blob - libsrc/atari/gotoxy.s
Don't add a mode when opening files for reading
[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         .import         setcursor
12
13 _gotoxy:                        ; Set the cursor position
14         sta     ROWCRS          ; Set Y
15         jsr     popa            ; Get X
16         sta     COLCRS          ; Set X
17         lda     #0
18         sta     COLCRS+1        ;
19         jmp     setcursor