I am just starting to use the assember and ran across an issue with constants.
I had mistakenly entered a constant on a line as
112
instead of
# 112
I did not get a warning or error and it was only when I was looking at the listing that I realized that that that particular line was silently dropped by the assembler.
I started playing around with the preprocessor and assembler to understand what was going on. I had mistakenly assumed that the preprocessor would take constants and expand them out which it does not do.
However, its current behavior can lead to errors. For example, if you put in the following:
12345
+
You will end up with the following code:
5
+
Has the idea of having the preprocessor expand out constants been previously explored? Would it be difficult? Whether that change is made or not, if a plain multi-digit constant is encountered, the preprocessor/assembler should probably spit out an error.