1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00
cc65/libsrc/pce/gotoxy.s

20 lines
452 B
ArmAsm
Raw Normal View History

2014-11-30 11:20:57 +01:00
;
2015-11-17 09:14:15 -05:00
; void __fastcall__ gotoxy (unsigned char x, unsigned char y);
2014-11-30 11:20:57 +01:00
;
.export gotoxy, _gotoxy
2015-10-02 10:50:22 -04:00
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
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