aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-20 21:58:26 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-20 21:58:26 +0100
commit0bc97c99c644955096b3e13a2a7df6b281314e25 (patch)
tree1e09fa92a5ac71df1d097d8581e4538ce7182112 /crates
parent0087cc0631ae8e8b1892e674e34a9daa84ad0bb9 (diff)
downloadtools.nes-0bc97c99c644955096b3e13a2a7df6b281314e25.tar.gz
tools.nes-0bc97c99c644955096b3e13a2a7df6b281314e25.zip
Add support for UxROM chips
I have also added an end-to-end test for it. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates')
-rw-r--r--crates/nasm/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs
index fc5d1c0..0c754e3 100644
--- a/crates/nasm/src/main.rs
+++ b/crates/nasm/src/main.rs
@@ -4,7 +4,7 @@ use std::fs::File;
use std::io::{self, Read, Write};
use std::path::Path;
use xixanta::assembler::Assembler;
-use xixanta::mapping::{Mapping, EMPTY, NROM, NROM65};
+use xixanta::mapping::{Mapping, EMPTY, NROM, NROM65, UXROM};
/// Assembler for the 6502 microprocessor that targets the NES/Famicom.
#[derive(ClapParser, Debug)]
@@ -81,8 +81,9 @@ fn main() -> Result<()> {
"empty" => EMPTY.to_vec(),
"nrom" => NROM.to_vec(),
"nrom65" => NROM65.to_vec(),
+ "uxrom" | "unrom" => UXROM.to_vec(),
_ => {
- println!("Unnown linker configuration '{}'", c);
+ println!("Unknown linker configuration '{}'", c);
std::process::exit(1);
}
},