1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Added gotox() and gotoy() implementations.

This commit is contained in:
Stephan Mühlstrasser 2014-11-29 15:52:42 +01:00
parent a66c93c55b
commit 7dac57f60d
2 changed files with 32 additions and 0 deletions

17
libsrc/c1p/gotox.s Normal file
View File

@ -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

15
libsrc/c1p/gotoy.s Normal file
View File

@ -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