diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-18 16:41:34 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-08-18 16:41:34 +0200 |
| commit | 6cb4215f55876a7fffb1fd33f2bd061283d2389f (patch) | |
| tree | ba0f17915bb3a24d2d5112d89cfd8b5fea9a74e4 /crates/readrom/README.md | |
| parent | fcd4c9a267b407e653ed6b21ae87f219f3e4c4af (diff) | |
| download | tools.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 'crates/readrom/README.md')
0 files changed, 0 insertions, 0 deletions
