]> git.sur5r.net Git - cc65/blob - libsrc/atari/gotoxy.s
Minor clarification.
[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, _gotoxy
10         .import         popa
11         .import         setcursor
12
13 gotoxy:
14         jsr     popa            ; Get Y
15
16 _gotoxy:                        ; Set the cursor position
17         sta     ROWCRS          ; Set Y
18         jsr     popa            ; Get X
19         sta     COLCRS          ; Set X
20         lda     #0
21         sta     COLCRS+1
22         jmp     setcursor