2 ; void cputcxy (unsigned char x, unsigned char y, char c);
6 .export _cputcxy, _cputc, cputdirect, putchar
22 jsr gotoxy ; Set cursor, drop x and y
25 ; Plot a character - also used as internal function
27 _cputc: cmp #$0d ; CR?
31 beq plot ; Recalculate pointers
34 beq newline ; Recalculate pointers
36 ; Printable char of some sort
39 jsr putchar ; Write the character to the screen
41 ; Advance cursor position
48 jsr newline ; new line
56 ; Set cursor position, calculate RAM pointers
61 jmp PLOT ; Set the new cursor
63 ; Write one character to the screen without doing anything else, return X
83 ; plus fontdata base address
138 ;-------------------------------------------------------------------------------
139 ; force the init constructor to be imported
142 conio_init = initconio