1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 00:29:31 +00:00
cc65/libsrc/nes/gotoy.s
2022-04-17 16:06:22 +02:00

23 lines
360 B
ArmAsm

;
; Ullrich von Bassewitz, 2003-05-02
;
; void gotoy (unsigned char y);
;
.export _gotoy
.import setcursor
.include "nes.inc"
.proc _gotoy
sta CURS_Y ; Set new position
tax
ldy CURS_X
jmp setcursor ; Set the cursor to the new position
.endproc