add gotox, gotoy, and gotoxy
This commit is contained in:
19
libsrc/atari5200/gotoxy.s
Normal file
19
libsrc/atari5200/gotoxy.s
Normal file
@@ -0,0 +1,19 @@
|
||||
;
|
||||
; Christian Groessler, 13-Mar-2014
|
||||
;
|
||||
; void gotoxy (unsigned char x, unsigned char y);
|
||||
;
|
||||
|
||||
.include "atari5200.inc"
|
||||
|
||||
.export _gotoxy
|
||||
.import popa
|
||||
.import setcursor
|
||||
|
||||
_gotoxy: ; Set the cursor position
|
||||
sta ROWCRS_5200 ; Set Y
|
||||
jsr popa ; Get X
|
||||
sta COLCRS_5200 ; Set X
|
||||
lda #0
|
||||
sta COLCRS_5200+1 ;
|
||||
jmp setcursor
|
||||
Reference in New Issue
Block a user