]> git.sur5r.net Git - cc65/blob - libsrc/cbm/gotoxy.s
goto.c warning fix for implicit truncation
[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, _gotoxy
8         .import         popa, plot
9         .importzp       CURS_X, CURS_Y
10
11 gotoxy:
12         jsr     popa            ; Get Y
13
14 _gotoxy:
15         sta     CURS_Y          ; Set Y
16         jsr     popa            ; Get X
17         sta     CURS_X          ; Set X
18         jmp     plot            ; Set the cursor position
19
20