aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/opcodes.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-10-23 12:54:14 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-12 07:49:33 +0100
commitd492aa8271f9fb02351b1144733508194df67746 (patch)
treea035d7c495ebc6a12b01e0018b345760de24ba22 /lib/xixanta/src/opcodes.rs
parent4f24eb5e5754c4e1e2c6069bdaf1b0f34c856c1b (diff)
downloadtools.nes-d492aa8271f9fb02351b1144733508194df67746.tar.gz
tools.nes-d492aa8271f9fb02351b1144733508194df67746.zip
Re-work the support on labels, variables and jumps
As a way to firstly adapt on the latest changes from the parser since 184c39579227 ("Re-work the parser from scratch"), the assembler had to leave out some features on 16114b2ca358 ("Adapt the assembler to the changes on the parser"). This commit reintroduces support for settings labels, variables and referencing them, while also providing a more robust implementation at that. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/opcodes.rs')
-rw-r--r--lib/xixanta/src/opcodes.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs
index 9198e3a..0e7f379 100644
--- a/lib/xixanta/src/opcodes.rs
+++ b/lib/xixanta/src/opcodes.rs
@@ -727,6 +727,7 @@ lazy_static! {
functions.insert(String::from(".db"), Control { has_identifier: false, required_args: None, touches_context: false });
functions.insert(String::from(".word"), Control { has_identifier: false, required_args: None, touches_context: false });
functions.insert(String::from(".dw"), Control { has_identifier: false, required_args: None, touches_context: false });
+ functions.insert(String::from(".addr"), Control { has_identifier: false, required_args: None, touches_context: false });
functions
};