2014-11-30 11:20:57 +01:00
|
|
|
;
|
|
|
|
; void gotoxy (unsigned char x, unsigned char y);
|
|
|
|
;
|
|
|
|
|
2016-06-05 14:58:38 +02:00
|
|
|
.export gotoxy, _gotoxy
|
2015-08-29 15:58:57 +02:00
|
|
|
.import popa, plot
|
2014-11-30 11:20:57 +01:00
|
|
|
|
2015-08-29 15:58:57 +02:00
|
|
|
.include "pce.inc"
|
2015-09-19 15:37:39 +02:00
|
|
|
.include "extzp.inc"
|
2014-11-30 11:20:57 +01:00
|
|
|
|
2016-06-05 14:58:38 +02:00
|
|
|
gotoxy:
|
|
|
|
jsr popa ; Get Y
|
|
|
|
|
2014-11-30 11:20:57 +01:00
|
|
|
_gotoxy:
|
2015-08-29 15:58:57 +02:00
|
|
|
sta CURS_Y ; Set Y
|
|
|
|
jsr popa ; Get X
|
|
|
|
sta CURS_X ; Set X
|
|
|
|
jmp plot ; Set the cursor position
|
2014-11-30 11:20:57 +01:00
|
|
|
|
2015-07-13 12:10:09 +02:00
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
; force the init constructor to be imported
|
|
|
|
|
2015-08-29 15:58:57 +02:00
|
|
|
.import initconio
|
|
|
|
conio_init = initconio
|
2014-11-30 11:20:57 +01:00
|
|
|
|