From 9d790bb4acddae689c5dda667f9d160041bdd4b8 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 15 Jul 2026 22:11:50 +0200 Subject: readrom: implement the -d/--disassemble option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This option can also be coupled with -n/--nasm-directory, and you can then get a human-readable disassembling of any proc or label you might be thinking on. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/assembler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/xixanta/src/assembler.rs') diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 959840d..91f1e14 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -1429,7 +1429,7 @@ impl<'a> Assembler<'a> { // Using unwrap() is safe as it only returns an error on // badly formatted addresses. This will not happen at // this point. - let resolved = self.context.resolve_label(&self.mappings, &bundle).unwrap(); + let resolved = self.context.resolve_label(&self.mappings, bundle).unwrap(); let val = resolved.bundle.value() as usize; let end = match self.address_ends.get(&full_name) { -- cgit v1.2.3