aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-09-16 22:34:56 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-09-16 22:34:56 +0200
commit70a801a43c16fd7a5f61e8d876e5d5c2db48ebe8 (patch)
treef1836f8facd9dc69429ab5693afec8d4d326025d /config
downloadbtree.nes-70a801a43c16fd7a5f61e8d876e5d5c2db48ebe8.tar.gz
btree.nes-70a801a43c16fd7a5f61e8d876e5d5c2db48ebe8.zip
Initial commitHEADmain
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'config')
-rw-r--r--config/mmc1.cfg22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/mmc1.cfg b/config/mmc1.cfg
new file mode 100644
index 0000000..4803993
--- /dev/null
+++ b/config/mmc1.cfg
@@ -0,0 +1,22 @@
+MEMORY {
+ # iNES header.
+ HEADER: start = $0, size = $10, fill = yes;
+
+ # Banked PRG ROM: one for the NES game, the other for the library.
+ PRG0: start = $8000, size = $4000, fill = yes, fillval = $00, define = yes;
+ PRG1: start = $C000, size = $3FFA, fill = yes, fillval = $01, define = yes;
+
+ # Hardware Vectors.
+ ROMV: start = $FFFA, size = $0006, fill = yes;
+
+ # No banking on CHR, we keep it simple.
+ ROM2: start = $0000, size = $2000, fill = yes, fillval = $02;
+}
+
+SEGMENTS {
+ HEADER: load = HEADER, type = ro;
+ FIXED: load = PRG0, type = ro;
+ LIBTREE: load = PRG1, type = ro;
+ VECTORS: load = ROMV, type = ro;
+ CHARS: load = ROM2, type = ro;
+} \ No newline at end of file