added extra check for graphical chars

This commit is contained in:
mrdudz
2015-09-28 15:10:57 +02:00
parent 257183fa55
commit 6cc654cca8
4 changed files with 32 additions and 21 deletions

View File

@@ -7,6 +7,9 @@
.import popa, _gotoxy, soft80_cputdirect
.importzp tmp1
.include "c64.inc"
.include "soft80.inc"
soft80_chlinexy:
pha ; Save the length
jsr popa ; Get y
@@ -17,7 +20,7 @@ soft80_chline:
cmp #0 ; Is the length zero?
beq L9 ; Jump if done
sta tmp1
L1: lda #96 ; Horizontal line, petscii code
L1: lda #CH_HLINE ; Horizontal line, petscii code
jsr soft80_cputdirect ; Direct output
dec tmp1
bne L1