Updated cx16 to match the Commander X16 ROMs and emulator, release 34.
This commit is contained in:
18
libsrc/cx16/gotoxy.s
Normal file
18
libsrc/cx16/gotoxy.s
Normal file
@@ -0,0 +1,18 @@
|
||||
;
|
||||
; 2019-11-06, Greg King
|
||||
;
|
||||
; void fastcall gotoxy (unsigned char x, unsigned char y);
|
||||
;
|
||||
|
||||
.export gotoxy, _gotoxy
|
||||
|
||||
.import popa, plot
|
||||
.include "cx16.inc"
|
||||
|
||||
gotoxy: jsr popa ; Get Y
|
||||
|
||||
_gotoxy:
|
||||
sta CURS_Y ; Set Y
|
||||
jsr popa ; Get X
|
||||
sta CURS_X ; Set X
|
||||
jmp plot ; Set the cursor position
|
||||
Reference in New Issue
Block a user