+;-------------------------------------------------------------------------
+; ATASCII CHARACTER DEFS
+;-------------------------------------------------------------------------
+
+ATCLR = $7D ;CLEAR SCREEN CHARACTER
+ATRUB = $7E ;BACK SPACE (RUBOUT)
+ATTAB = $7F ;TAB
+ATEOL = $9B ;END-OF-LINE
+ATDELL = $9C ;delete line
+ATINSL = $9D ;insert line
+ATCTAB = $9E ;clear TAB
+ATSTAB = $9F ;set TAB
+ATBEL = $FD ;CONSOLE BELL
+ATDEL = $FE ;delete char.
+ATINS = $FF ;insert char.
+ATURW = $1C ;UP-ARROW
+ATDRW = $1D ;DOWN-ARROW
+ATLRW = $1E ;LEFT-ARROW
+ATRRW = $1F ;RIGHT-ARROW
+ATESC = $1B ;ESCAPE
+
+
;-------------------------------------------------------------------------
; Zero Page
;-------------------------------------------------------------------------
PADDL7 = $18 ;POT7 "
+.importzp COLCRS_5200
+.importzp ROWCRS_5200
+
+
;-------------------------------------------------------------------------
; Page #2
;-------------------------------------------------------------------------
--- /dev/null
+;
+; Christian Groessler, 13-Mar-2014
+;
+; void gotox (unsigned char x);
+;
+
+ .include "atari5200.inc"
+ .export _gotox
+ .import setcursor
+
+_gotox:
+ sta COLCRS_5200 ; Set X
+ lda #0
+ sta COLCRS_5200+1
+ jmp setcursor
--- /dev/null
+;
+; 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
--- /dev/null
+;
+; Christian Groessler, 13-Mar-2014
+;
+; void gotoy (unsigned char y);
+;
+
+ .include "atari5200.inc"
+ .export _gotoy
+ .import setcursor
+
+_gotoy:
+ sta ROWCRS_5200 ; Set Y
+ jmp setcursor