From 4c3d4f15f24e32d043670939ace34fdb6993a51b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Dec 2024 16:21:49 +0100 Subject: Add support for jumping into .proc's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- lib/xixanta/src/object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xixanta/src/object.rs') 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() ), -- cgit v1.2.3