]> git.sur5r.net Git - cc65/blob - libsrc/pce/gotoxy.s
more hacking
[cc65] / libsrc / pce / 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
10         .include "pcengine.inc"
11
12 _gotoxy:
13
14         sta     CURS_Y          ; Set Y
15         jsr popa                ; Get X
16         sta     CURS_X          ; Set X
17         jmp     plot            ; Set the cursor position
18
19