.export _chlinexy, _chline
.import popa, _gotoxy, cputdirect
- .importzp tmp1
+ .importzp tmp1, chlinechar
_chlinexy:
pha ; Save the length
cmp #0 ; Is the length zero?
beq L9 ; Jump if done
sta tmp1
-L1: lda #64 ; Horizontal line, screen code
+L1: lda #chlinechar ; Horizontal line, screen code
jsr cputdirect ; Direct output
dec tmp1
bne L1
--- /dev/null
+;
+; Chars used by chline () and cvline ()
+;
+
+ .exportzp chlinechar = 64
+ .exportzp cvlinechar = 93
.export _cvlinexy, _cvline
.import popa, _gotoxy, putchar, newline
- .importzp tmp1
+ .importzp tmp1, cvlinechar
_cvlinexy:
pha ; Save the length
cmp #0 ; Is the length zero?
beq L9 ; Jump if done
sta tmp1
-L1: lda #93 ; Vertical bar
+L1: lda #cvlinechar ; Vertical bar
jsr putchar ; Write, no cursor advance
jsr newline ; Advance cursor to next line
dec tmp1