From 6300f588bbe82b88fa8b0112a2432c6c63bb2c3f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 11 Dec 2024 12:50:16 +0100 Subject: nasm: Add a parameter for linker configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/mapping.rs | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'lib') 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 = 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)] -- cgit v1.2.3