From 2627b459d9a19ce7f1b7f3a359dca3b30b66b34e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 12 Mar 2025 22:38:12 +0100 Subject: Start with a skeleton for the project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- config/nrom.cfg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config/nrom.cfg (limited to 'config') diff --git a/config/nrom.cfg b/config/nrom.cfg new file mode 100644 index 0000000..41a1f2a --- /dev/null +++ b/config/nrom.cfg @@ -0,0 +1,24 @@ +## +# Same as the default NROM configuration provided by cc65, but with C stuff +# stripped away (e.g. namely, there are no more segments like 'STARTUP'). + +MEMORY { + # iNES header + HEADER: file = %O, start = $0000, size = $0010, fill = yes; + + # Fixed ROM. + ROM0: file = %O, start = $8000, size = $7FFA, fill = yes, define = yes; + + # Hardware Vectors. + ROMV: file = %O, start = $FFFA, size = $0006, fill = yes; + + # 1 8k CHR Bank + ROM2: file = %O, start = $0000, size = $2000, fill = yes; +} + +SEGMENTS { + HEADER: load = HEADER, type = ro; + CODE: load = ROM0, type = ro, define = yes; + VECTORS: load = ROMV, type = rw; + CHARS: load = ROM2, type = rw; +} -- cgit v1.2.3