2003-05-02 15:00:45 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 06.08.1998
|
|
|
|
;
|
|
|
|
; void gotoxy (unsigned char x, unsigned char y);
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export _gotoxy
|
2003-05-02 15:00:45 +00:00
|
|
|
.import setcursor
|
2013-05-09 13:56:54 +02:00
|
|
|
.import popa
|
2003-05-02 15:00:45 +00:00
|
|
|
|
|
|
|
.include "nes.inc"
|
|
|
|
|
|
|
|
.proc _gotoxy
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
sta CURS_Y ; Set Y
|
|
|
|
jsr popa ; Get X
|
|
|
|
sta CURS_X ; Set X
|
2003-05-02 15:00:45 +00:00
|
|
|
tay
|
|
|
|
ldx CURS_Y
|
2013-05-09 13:56:54 +02:00
|
|
|
jmp setcursor ; Set the cursor position
|
2003-05-02 15:00:45 +00:00
|
|
|
|
|
|
|
.endproc
|
|
|
|
|
|
|
|
|