mirror of
https://github.com/cc65/cc65.git
synced 2025-01-19 02:33:19 +00:00
Added gotox() and gotoy() implementations.
This commit is contained in:
parent
a66c93c55b
commit
7dac57f60d
17
libsrc/c1p/gotox.s
Normal file
17
libsrc/c1p/gotox.s
Normal 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
15
libsrc/c1p/gotoy.s
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user