aboutsummaryrefslogtreecommitdiff
path: root/tests/expected/unused_macro_arg.txt
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-08-18 16:41:34 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-08-18 16:41:34 +0200
commit6cb4215f55876a7fffb1fd33f2bd061283d2389f (patch)
treeba0f17915bb3a24d2d5112d89cfd8b5fea9a74e4 /tests/expected/unused_macro_arg.txt
parentfcd4c9a267b407e653ed6b21ae87f219f3e4c4af (diff)
downloadtools.nes-6cb4215f55876a7fffb1fd33f2bd061283d2389f.tar.gz
tools.nes-6cb4215f55876a7fffb1fd33f2bd061283d2389f.zip
Validate labels when walking through the context
The parser does not validate label names completely (it only takes care of validating that it something that makes sense syntactically). The assembler can tell whether the label is actually taking a reserved name, or an invalid hexadecimal constant, etc. Before this commit a user would get a cryptic "invalid identifier" message when referencing an invalid label (e.g. "jmp 1234"). Fix this by validating the identifier there, but also when the label was defined before any of this. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'tests/expected/unused_macro_arg.txt')
0 files changed, 0 insertions, 0 deletions