Skip to content

Commit 221330b

Browse files
committed
Fixes a bug in PRINT EOL
Was not computing correctly the EOL when reaching the bottom-right corner
1 parent 4c49c2c commit 221330b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/arch/zx48k/library-asm/print.asm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ __PRINT_EOL2:
215215

216216
__PRINT_AT1_END:
217217
ld hl, (MAXY)
218-
cp h
218+
cp l
219219
jr c, __PRINT_EOL_END ; Carry if (MAXY) < d
220220
#ifndef DISABLE_SCROLL
221221
ld hl, __TVFLAGS
@@ -456,7 +456,11 @@ CONTINUE:
456456
ld b, a
457457
LOOP:
458458
ld a, ' '
459+
push bc
460+
exx
459461
call __PRINTCHAR
462+
exx
463+
pop bc
460464
djnz LOOP
461465
ret
462466
ENDP

0 commit comments

Comments
 (0)