2 ; void cputcxy (unsigned char x, unsigned char y, char c);
6 .export _cputcxy, _cputc, cputdirect, putchar
19 jsr gotoxy ; Set cursor, drop x and y
22 ; Plot a character - also used as internal function
24 _cputc: cmp #$0d ; CR?
28 beq plot ; Recalculate pointers
31 beq newline ; Recalculate pointers
33 ; Printable char of some sort
36 jsr putchar ; Write the character to the screen
38 ; Advance cursor position
45 jsr newline ; new line
53 ; Set cursor position, calculate RAM pointers
58 jmp PLOT ; Set the new cursor
60 ; Write one character to the screen without doing anything else, return X
65 ora RVS ; Set revers bit
69 st0 #VDC_MAWR ; Memory Adress Write
80 sta a:VDC_DATA_LO ; character
94 ;-------------------------------------------------------------------------------
95 ; force the init constructor to be imported
98 conio_init = initconio