VladisM/m2tools

Bug in comments

Closed this issue · 1 comments

For some reason comments in assembler source code doesn't work. They get treated as with potential instructions and then back-end going to throw syntax error as its input isn't valid instruction.

According to usage document comment start with semicolon and continues till end of line. But for example source, file test.asm containing following:

; This is comment

parsed by assembler like so:

$ i8080-assembler -o test.o test.asm

will emit following.

Token ';' from test.asm+1 is not recognized as valid instruction, label or pseudoinstruction!
Failed to complete pass1 on file test.asm!
Failed to run assembler on test.asm

Fixed in 264541b