]> git.sur5r.net Git - cc65/blob - libsrc/gamate/gotoxy.s
Merge pull request #283 from polluks/sp65
[cc65] / libsrc / gamate / gotoxy.s
1 ;
2 ; void gotoxy (unsigned char x, unsigned char y);
3 ;
4
5         .export         _gotoxy
6         .import         popa, plot
7
8         .include        "gamate.inc"
9         .include        "extzp.inc"
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 ;-------------------------------------------------------------------------------
18 ; force the init constructor to be imported
19
20         .import initconio
21 conio_init      = initconio
22