2 ; void cputcxy (unsigned char x, unsigned char y, char c);
6 .export _cputcxy, _cputc, cputdirect, putchar
20 jsr _gotoxy ; Set cursor, drop x
23 ; Plot a character - also used as internal function
25 _cputc: cmp #$0d ; CR?
29 beq plot ; Recalculate pointers
32 beq newline ; Recalculate pointers
34 ; Printable char of some sort
37 jsr putchar ; Write the character to the screen
39 ; Advance cursor position
46 jsr newline ; new line
54 ; Set cursor position, calculate RAM pointers
59 jmp PLOT ; Set the new cursor
61 ; Write one character to the screen without doing anything else, return X
66 ora RVS ; Set revers bit
70 st0 #VDC_MAWR ; Memory Adress Write
81 sta a:VDC_DATA_LO ; character
95 ;-------------------------------------------------------------------------------
96 ; force the init constructor to be imported
99 conio_init = initconio