2 ; void cputcxy (unsigned char x, unsigned char y, char c);
6 .export _cputcxy, _cputc, cputdirect, putchar
23 jsr _gotoxy ; Set cursor, drop x
26 ; Plot a character - also used as internal function
28 _cputc: cmp #$0d ; CR?
32 beq plot ; Recalculate pointers
35 beq newline ; Recalculate pointers
37 ; Printable char of some sort
40 jsr putchar ; Write the character to the screen
42 ; Advance cursor position
49 jsr newline ; new line
57 ; Set cursor position, calculate RAM pointers
62 jmp PLOT ; Set the new cursor
64 ; Write one character to the screen without doing anything else, return X
84 ; plus fontdata base address
139 ;-------------------------------------------------------------------------------
140 ; force the init constructor to be imported
143 conio_init = initconio