From 6035f1cb751a0faf7e813dca35bcee3c2bdb81fc Mon Sep 17 00:00:00 2001 From: mrdudz Date: Wed, 15 Jul 2020 00:17:11 +0200 Subject: [PATCH] added missing gotox/gotoy functions --- libsrc/pce/gotox.s | 14 ++++++++++++++ libsrc/pce/gotoy.s | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 libsrc/pce/gotox.s create mode 100644 libsrc/pce/gotoy.s diff --git a/libsrc/pce/gotox.s b/libsrc/pce/gotox.s new file mode 100644 index 000000000..fe8a23734 --- /dev/null +++ b/libsrc/pce/gotox.s @@ -0,0 +1,14 @@ +; +; void __fastcall__ gotox (unsigned char x); +; + + .export _gotox + + .import plot + + .include "pce.inc" + .include "extzp.inc" + +_gotox: + sta CURS_X ; Set X + jmp plot ; Set the cursor position diff --git a/libsrc/pce/gotoy.s b/libsrc/pce/gotoy.s new file mode 100644 index 000000000..9585b035b --- /dev/null +++ b/libsrc/pce/gotoy.s @@ -0,0 +1,14 @@ +; +; void __fastcall__ gotoy (unsigned char y); +; + + .export _gotoy + + .import plot + + .include "pce.inc" + .include "extzp.inc" + +_gotoy: + sta CURS_Y ; Set Y + jmp plot ; Set the cursor position