]> git.sur5r.net Git - cc65/blob - libsrc/nes/gotoxy.s
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / nes / 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         setcursor
9         .import         popa
10
11         .include        "nes.inc"
12
13 .proc   _gotoxy
14
15         sta     CURS_Y          ; Set Y
16         jsr     popa            ; Get X
17         sta     CURS_X          ; Set X
18         tay
19         ldx     CURS_Y
20         jmp     setcursor       ; Set the cursor position
21
22 .endproc
23
24