diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 16:21:49 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 16:21:49 +0100 |
| commit | 4c3d4f15f24e32d043670939ace34fdb6993a51b (patch) | |
| tree | ebb0db9b738635c6b19e0622631063c2f744d181 /lib/xixanta/src/object.rs | |
| parent | a9f50efdef4008822287911025e0f1783dcc9638 (diff) | |
| download | tools.nes-4c3d4f15f24e32d043670939ace34fdb6993a51b.tar.gz tools.nes-4c3d4f15f24e32d043670939ace34fdb6993a51b.zip | |
Add support for jumping into .proc's
Up until now defining a proc only involved pushing/popping the context.
Here we also allow it to create a label so it can be referenced by
instructions like jsr.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/object.rs')
| -rw-r--r-- | lib/xixanta/src/object.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xixanta/src/object.rs b/lib/xixanta/src/object.rs index 3d0c9e7..8f177a1 100644 --- a/lib/xixanta/src/object.rs +++ b/lib/xixanta/src/object.rs @@ -230,7 +230,7 @@ impl Context { if !overwrite { return Err(ContextError { message: format!( - "'{}' already defined in {}: you cannot re-assign variables", + "'{}' already defined in {}: you cannot re-assign names", id.value, self.to_human() ), |
