]> git.sur5r.net Git - cc65/blob - libsrc/pce/gotoxy.s
379b02f7c9e50e485f24fab2bb7e9292d4809f51
[cc65] / libsrc / pce / gotoxy.s
1 ;
2 ; void gotoxy (unsigned char x, unsigned char y);
3 ;
4
5         .export         gotoxy, _gotoxy
6
7         .import         popa, plot
8
9         .include        "pce.inc"
10         .include        "extzp.inc"
11
12 gotoxy:
13         jsr     popa            ; Get Y
14
15 _gotoxy:
16         sta     CURS_Y          ; Set Y
17         jsr     popa            ; Get X
18         sta     CURS_X          ; Set X
19         jmp     plot            ; Set the cursor position
20
21 ;-------------------------------------------------------------------------------
22 ; force the init constructor to be imported
23
24         .import initconio
25 conio_init      = initconio
26