]> git.sur5r.net Git - cc65/blob - libsrc/c1p/gotoxy.s
Configuration file for assembler-only build.
[cc65] / libsrc / c1p / gotoxy.s
1 ;
2 ; copied from CBM implementation
3 ;
4 ; originally by:
5 ; Ullrich von Bassewitz, 06.08.1998
6 ;
7 ; void gotoxy (unsigned char x, unsigned char y);
8 ;
9         .export         _gotoxy
10         .import         popa, plot
11         .importzp       CURS_X, CURS_Y
12
13 _gotoxy:
14         sta     CURS_Y          ; Set Y
15         jsr     popa            ; Get X
16         sta     CURS_X          ; Set X
17         jmp     plot            ; Set the cursor position