2015-11-29 00:14:59 +00:00
|
|
|
;
|
|
|
|
; void gotoxy (unsigned char x, unsigned char y);
|
|
|
|
;
|
|
|
|
|
2016-06-05 12:58:38 +00:00
|
|
|
.export gotoxy, _gotoxy
|
2015-11-29 00:14:59 +00:00
|
|
|
.import popa, plot
|
|
|
|
|
|
|
|
.include "gamate.inc"
|
|
|
|
.include "extzp.inc"
|
|
|
|
|
2016-06-05 12:58:38 +00:00
|
|
|
gotoxy:
|
|
|
|
jsr popa ; Get X
|
|
|
|
|
2015-11-29 00:14:59 +00:00
|
|
|
_gotoxy:
|
|
|
|
sta CURS_Y ; Set Y
|
|
|
|
jsr popa ; Get X
|
|
|
|
sta CURS_X ; Set X
|
|
|
|
jmp plot ; Set the cursor position
|
|
|
|
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
; force the init constructor to be imported
|
|
|
|
|
|
|
|
.import initconio
|
|
|
|
conio_init = initconio
|
|
|
|
|