]> git.sur5r.net Git - cc65/blob - libsrc/cbm/gotoxy.s
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / libsrc / cbm / gotoxy.s
1 ;
2 ; Ullrich von Bassewitz, 06.08.1998
3 ;
4 ; void gotoxy (unsigned char x, unsigned char y);
5 ;
6
7         .export         _gotoxy
8         .import         popa, plot
9         .importzp       CURS_X, CURS_Y
10
11 _gotoxy:
12         sta     CURS_Y          ; Set Y
13         jsr     popa            ; Get X
14         sta     CURS_X          ; Set X
15         jmp     plot            ; Set the cursor position
16
17