.export soft80_cgetc
.import cursor ; FIX/CHECK
- .import putcolor ; FIX/CHECK
+ .import soft80_putcolor
.include "c64.inc"
.include "soft80.inc"
lda #$34
sta $01
- jsr putcolor
+ jsr soft80_putcolor
ldy #$00
;
.export soft80_chlinexy, soft80_chline
- .import popa, _gotoxy, cputdirect ; FIX/CHECK
+ .import popa, _gotoxy, soft80_cputdirect
.importzp tmp1
soft80_chlinexy:
- pha ; Save the length
- jsr popa ; Get y
- jsr _gotoxy ; Call this one, will pop params
- pla ; Restore the length
+ pha ; Save the length
+ jsr popa ; Get y
+ jsr _gotoxy ; Call this one, will pop params
+ pla ; Restore the length
soft80_chline:
- cmp #0 ; Is the length zero?
- beq L9 ; Jump if done
+ cmp #0 ; Is the length zero?
+ beq L9 ; Jump if done
sta tmp1
-L1: lda #96 ; Horizontal line, screen code
- jsr cputdirect ; Direct output
+L1: lda #96 ; Horizontal line, screen code
+ jsr soft80_cputdirect ; Direct output
dec tmp1
bne L1
L9: rts
.export soft80_cputcxy, soft80_cputc
.export soft80_cputdirect, soft80_putchar
- .export putcolor ; FIX/CHECK
-
+ .export soft80_putcolor
.export soft80_newline, soft80_plot
+
.import popa, _gotoxy
.import xsize
- .import PLOT ; FIX/CHECK
- .importzp tmp4,tmp3
+ .import soft80_kplot
.import __bgcolor ; FIX/CHECK
+ .importzp tmp4,tmp3
+
.macpack longbranch
.include "c64.inc"
ldx CURS_Y
ldy CURS_X
clc
- jmp PLOT ; Set the new cursor
+ jmp soft80_kplot ; Set the new cursor
L1: cmp #$0D ; LF?
beq soft80_newline ; Recalculate pointers
; put color to cell
; y unmodified
-putcolor:
+soft80_putcolor:
;ldy #$00 ; is still $00
_spaceinvers:
- jsr putcolor
+ jsr soft80_putcolor
lda CURS_X
and #$01
cmp #' ' ; space is a special (optimized) case
jeq _space
- jsr putcolor
+ jsr soft80_putcolor
; output character
char:
;
.export soft80_cvline, soft80_cvlinexy
- .import popa, _gotoxy, putchar, newline ; CHECK/FIX
+ .import popa, _gotoxy, soft80_putchar, soft80_newline
.importzp tmp1
soft80_cvlinexy:
beq L9 ; Jump if done
sta tmp1
L1: lda #125 ; Vertical bar
- jsr putchar ; Write, no cursor advance
- jsr newline ; Advance cursor to next line
+ jsr soft80_putchar ; Write, no cursor advance
+ jsr soft80_newline ; Advance cursor to next line
dec tmp1
bne L1
L9: rts