1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/libsrc/pce/gotoxy.s

26 lines
620 B
ArmAsm
Raw Normal View History

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