From ae2187ad0618b527ea12694c9647327ea18f2bac Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 17 May 2019 19:49:37 -0400 Subject: [PATCH] zasm: avoid ';' literal Simplifies comment stripping through sed. --- apps/zasm/tok.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/zasm/tok.asm b/apps/zasm/tok.asm index 99e4e61..1b88601 100644 --- a/apps/zasm/tok.asm +++ b/apps/zasm/tok.asm @@ -180,7 +180,7 @@ gotoNextLine: jr z, .eof call isLineEnd jr z, .loop3 ; good! - cp ';' + cp 0x3b ; ';' jr z, .loop2 ; comment starting, go to "fast lane" jr .loop1 .loop2: @@ -201,7 +201,7 @@ gotoNextLine: call ioGetC or a ; cp 0 jr z, .eof - cp ';' + cp 0x3b ; ';' jr z, .loop2 ; oh, another comment! go back to loop2! call isSepOrLineEnd jr z, .loop3