2 ; Ullrich von Bassewitz, 06.08.1998
4 ; void cputcxy (unsigned char x, unsigned char y, char c);
8 .export _cputcxy, _cputc, cputdirect, putchar
15 .include "pcengine.inc"
21 jsr _gotoxy ; Set cursor, drop x
24 ; Plot a character - also used as internal function
26 _cputc: cmp #$0d ; CR?
30 beq plot ; Recalculate pointers
33 beq newline ; Recalculate pointers
35 ; Printable char of some sort
38 jsr putchar ; Write the character to the screen
40 ; Advance cursor position
47 jsr newline ; new line
73 ; Set cursor position, calculate RAM pointers
78 jmp PLOT ; Set the new cursor
82 ; Write one character to the screen without doing anything else, return X
87 ora RVS ; Set revers bit
91 st0 #VDC_MAWR ; Memory Adress Write
102 staio VDC_DATA_LO ; character
104 ;;st2 #$32 ; attrib ?!