.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.exportzp CURS_X, CURS_Y
+
+ .import PLOT
.import _gotoxy
.import popa
- .import xsize, revers
.include "cbm610.inc"
- .include "zeropage.inc"
- .include "../cbm/cbm.inc"
+
_cputcxy:
pha ; Save C
advance:
iny
- cpy xsize
+ cpy #XSIZE
bne L3
jsr newline ; new line
ldy #0 ; + cr
newline:
clc
- lda xsize
+ lda #XSIZE
adc CharPtr
sta CharPtr
bcc L4
; Handle character if high bit set
-L10: and #$7F
+L10: and #$7F
cmp #$7E ; PI?
bne L11
lda #$5E ; Load screen code for PI
ldx IndReg
ldy #$0F
sty IndReg
- ora revers ; Set revers bit
+ ora RVS ; Set revers bit
ldy CURS_X
sta (CharPtr),y ; Set char
stx IndReg