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 pointer
31 beq newline ; Recalculate pointer
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 VRAM pointer.
58 jmp PLOT ; Set the new cursor
60 ; Write one character to the screen without doing anything else.
63 ora RVS ; Set revers bit
67 st0 #VDC_MAWR ; Memory Address Write
78 sta VDC_DATA_LO ; character
80 lda CHARCOLOR ; pallette number
91 ;-------------------------------------------------------------------------------
92 ; force the init constructor to be imported
95 conio_init = initconio