aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-11 12:50:16 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-12 07:57:16 +0100
commit6300f588bbe82b88fa8b0112a2432c6c63bb2c3f (patch)
treeb14592a20cd63fe03634dc0fdc5a1a8a570109b4 /lib
parentb1623996c76fe6089e6cb16d1e1a16d32d1c19c3 (diff)
downloadtools.nes-6300f588bbe82b88fa8b0112a2432c6c63bb2c3f.tar.gz
tools.nes-6300f588bbe82b88fa8b0112a2432c6c63bb2c3f.zip
nasm: Add a parameter for linker configuration
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/xixanta/src/mapping.rs42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/xixanta/src/mapping.rs b/lib/xixanta/src/mapping.rs
index bd2fc2c..657a94b 100644
--- a/lib/xixanta/src/mapping.rs
+++ b/lib/xixanta/src/mapping.rs
@@ -43,6 +43,48 @@ lazy_static! {
bundles: vec![],
}
];
+ pub static ref NROM65: Vec<Segment> = vec![
+ Segment {
+ name: String::from("HEADER"),
+ start: 0x0000,
+ size: 0x0010,
+ offset: 0,
+ fill: Some(0x00),
+ bundles: vec![],
+ },
+ Segment {
+ name: String::from("VECTORS"),
+ start: 0xFFFA,
+ size: 0x0006,
+ offset: 0,
+ fill: Some(0x00),
+ bundles: vec![],
+ },
+ Segment {
+ name: String::from("STARTUP"),
+ start: 0x8000,
+ size: 0x7FFA,
+ offset: 0,
+ fill: Some(0x00),
+ bundles: vec![],
+ },
+ Segment {
+ name: String::from("CODE"),
+ start: 0x8000,
+ size: 0x7FFA,
+ offset: 0,
+ fill: Some(0x00),
+ bundles: vec![],
+ },
+ Segment {
+ name: String::from("CHARS"),
+ start: 0x0000,
+ size: 0x2000,
+ offset: 0,
+ fill: Some(0x00),
+ bundles: vec![],
+ }
+ ];
}
#[derive(Debug, Clone, Eq, Ord, PartialEq, PartialOrd)]