From 68ef686c3c0e1304bd871cac5fb27ac0640ba977 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 10 Nov 2019 13:50:26 -0500 Subject: [PATCH] zasm: fix 16-bit include lineno counting It was actually counted in 8-bit mode... --- apps/zasm/io.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/zasm/io.asm b/apps/zasm/io.asm index 6458634..6607c01 100644 --- a/apps/zasm/io.asm +++ b/apps/zasm/io.asm @@ -88,8 +88,9 @@ ioGetB: ; We have newline. Increase lineno and return (the rest of the ; processing below isn't needed. push hl - ld hl, IO_INC_LINENO - inc (hl) + ld hl, (IO_INC_LINENO) + inc hl + ld (IO_INC_LINENO), hl pop hl ret