1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-29 10:29:30 +00:00
cc65/libsrc/pce/gotoxy.s

17 lines
380 B
ArmAsm
Raw Normal View History

2014-11-30 10:20:57 +00:00
;
; void gotoxy (unsigned char x, unsigned char y);
;
2015-07-12 12:27:24 +00:00
.export _gotoxy
.import popa, plot
2014-11-30 10:20:57 +00:00
2015-07-12 12:27:24 +00:00
.include "pce.inc"
2014-11-30 10:20:57 +00:00
_gotoxy:
2015-07-12 12:27:24 +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