3 ; Maciej 'YTM/Elysium' Witkowiak
8 ; void cputcxy (unsigned char x, unsigned char y, char c);
11 .export _cputcxy, _cputc, update_cursor
13 .import _gotoxy, fixcursor
16 .importzp cursor_x, cursor_y, cursor_c, cursor_r
18 .include "../inc/const.inc"
19 .include "../inc/geossym.inc"
20 .include "../inc/jumptab.inc"
25 jsr _gotoxy ; Set cursor, drop x
28 ; Plot a character - also used as internal function
32 ; some characters are not safe for PutChar
44 L00: cmp #ESC_GRAPHICS
75 cmp xsize ; hit right margin?
77 lda #0 ; yes - do cr+lf
81 cmp ysize ; hit bottom margin?
83 dec cursor_r ; yes - stay in the last line
95 lda #1 ; update cursor prompt position