2017-02-25 21:20:17 +00:00
|
|
|
;
|
2017-06-15 20:44:46 +00:00
|
|
|
; 2017-02-25, jede <jede@oric.org>
|
|
|
|
; 2017-06-15, Greg King
|
2017-02-25 21:20:17 +00:00
|
|
|
;
|
2017-06-15 20:44:46 +00:00
|
|
|
; void gotoxy (unsigned char x, unsigned char y);
|
|
|
|
;
|
|
|
|
|
|
|
|
.export gotoxy, _gotoxy
|
|
|
|
|
|
|
|
.import popa
|
|
|
|
.importzp sp
|
2017-02-25 20:32:06 +00:00
|
|
|
|
2017-06-15 20:44:46 +00:00
|
|
|
.include "telestrat.inc"
|
|
|
|
|
|
|
|
gotoxy: jsr popa ; Get Y
|
2017-02-25 20:32:06 +00:00
|
|
|
|
|
|
|
.proc _gotoxy
|
2017-06-15 20:44:46 +00:00
|
|
|
|
|
|
|
; This function moves only the display cursor; it does not move the prompt position.
|
|
|
|
; In telemon, there is a position for the prompt, and another for the cursor.
|
|
|
|
|
|
|
|
sta SCRY
|
|
|
|
jsr popa
|
|
|
|
sta SCRX
|
|
|
|
rts
|
|
|
|
.endproc
|