From d492aa8271f9fb02351b1144733508194df67746 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 23 Oct 2024 12:54:14 +0200 Subject: Re-work the support on labels, variables and jumps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- lib/xixanta/src/opcodes.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/xixanta/src/opcodes.rs') 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 }; -- cgit v1.2.3