zasm: avoid ';' literal

Simplifies comment stripping through sed.
This commit is contained in:
Virgil Dupras 2019-05-17 19:49:37 -04:00
parent a3d3e0ce37
commit ae2187ad06

View File

@ -180,7 +180,7 @@ gotoNextLine:
jr z, .eof jr z, .eof
call isLineEnd call isLineEnd
jr z, .loop3 ; good! jr z, .loop3 ; good!
cp ';' cp 0x3b ; ';'
jr z, .loop2 ; comment starting, go to "fast lane" jr z, .loop2 ; comment starting, go to "fast lane"
jr .loop1 jr .loop1
.loop2: .loop2:
@ -201,7 +201,7 @@ gotoNextLine:
call ioGetC call ioGetC
or a ; cp 0 or a ; cp 0
jr z, .eof jr z, .eof
cp ';' cp 0x3b ; ';'
jr z, .loop2 ; oh, another comment! go back to loop2! jr z, .loop2 ; oh, another comment! go back to loop2!
call isSepOrLineEnd call isSepOrLineEnd
jr z, .loop3 jr z, .loop3