]> git.sur5r.net Git - cc65/commitdiff
Added gotox() and gotoy() implementations.
authorStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sat, 29 Nov 2014 14:52:42 +0000 (15:52 +0100)
committerStephan Mühlstrasser <stephan.muehlstrasser@web.de>
Sat, 29 Nov 2014 14:52:42 +0000 (15:52 +0100)
libsrc/c1p/gotox.s [new file with mode: 0644]
libsrc/c1p/gotoy.s [new file with mode: 0644]

diff --git a/libsrc/c1p/gotox.s b/libsrc/c1p/gotox.s
new file mode 100644 (file)
index 0000000..315e1b5
--- /dev/null
@@ -0,0 +1,17 @@
+;
+; copied from CBM implementation
+; originally by:
+; Ullrich von Bassewitz, 07.08.1998
+;
+; void gotox (unsigned char x);
+;
+
+        .export         _gotox
+        .import         plot           
+        .importzp       CURS_X
+
+_gotox: sta     CURS_X          ; Set new position
+        jmp     plot            ; And activate it
+
+
+
diff --git a/libsrc/c1p/gotoy.s b/libsrc/c1p/gotoy.s
new file mode 100644 (file)
index 0000000..e9e8145
--- /dev/null
@@ -0,0 +1,15 @@
+;
+; copied from CBM implementation
+; originally by:
+; Ullrich von Bassewitz, 0.08.1998
+;
+; void gotoy (unsigned char y);
+;
+
+        .export         _gotoy
+        .import         plot
+        .importzp       CURS_Y
+
+_gotoy: sta     CURS_Y          ; Set the new position
+        jmp     plot            ; And activate it
+