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:
|
2017-06-15 20:44:46 +00:00
|
|
|
jsr popa ; Get Y
|
2016-06-05 12:58:38 +00:00
|
|
|
|
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
|
|
|
|
|
2017-06-15 20:44:46 +00:00
|
|
|
.forceimport initconio
|