.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
- .import xsize
.import PLOT
.include "c64.inc"
advance:
iny
- cpy xsize
+ cpy #XSIZE
bne L3
jsr newline ; new line
ldy #0 ; + cr
newline:
clc
- lda xsize
+ lda #XSIZE
adc SCREEN_PTR
sta SCREEN_PTR
bcc L4
inc SCREEN_PTR+1
clc
-L4: lda xsize
+L4: lda #XSIZE
adc CRAM_PTR
sta CRAM_PTR
bcc L5