2 ; void cputcxy (unsigned char x, unsigned char y, char c);
6 .export _cputcxy, _cputc, cputdirect, putchar
18 jsr _gotoxy ; Set cursor, drop x
21 ; Plot a character - also used as internal function
23 _cputc: cmp #$0d ; CR?
27 beq plot ; Recalculate pointers
30 beq newline ; Recalculate pointers
32 ; Printable char of some sort
35 jsr putchar ; Write the character to the screen
37 ; Advance cursor position
44 jsr newline ; new line
52 ; Set cursor position, calculate RAM pointers
57 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