]> git.sur5r.net Git - cc65/blob - libsrc/atari5200/gotoxy.s
Replace hard returns with an "else", add an error for non-IDENT tokens, and test...
[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, _gotoxy
10         .import         popa
11
12 gotoxy:
13         jsr     popa            ; Get Y
14
15 _gotoxy:                        ; Set the cursor position
16         sta     ROWCRS_5200     ; Set Y
17         jsr     popa            ; Get X
18         sta     COLCRS_5200     ; Set X
19         rts