summaryrefslogtreecommitdiff
path: root/mappers/mapper_004_0.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-11-02 10:15:54 +0100
committerPeter Fors <peter.fors@mindkiller.com>2025-11-02 10:15:54 +0100
commitfc41466fe825eae4e5c2e2f4764482c53c687679 (patch)
tree82f238d9e977c589184864ce043b3af355bbff32 /mappers/mapper_004_0.h
parenta4bc9dcb3fee68c45fec1feb54a9b00c885dd68e (diff)
add new mapper, 004_0 MMC3
Diffstat (limited to 'mappers/mapper_004_0.h')
-rw-r--r--mappers/mapper_004_0.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mappers/mapper_004_0.h b/mappers/mapper_004_0.h
new file mode 100644
index 0000000..227d8b8
--- /dev/null
+++ b/mappers/mapper_004_0.h
@@ -0,0 +1,17 @@
+
+
+struct mapper_004_0 {
+ uint8_t *prg_banks[4]; // 8kb banks at $8000, $a000, $c000, $e000
+ uint8_t *chr_banks[8]; // 1kb banks at $0000-$1fff
+
+ uint8_t bank_select;
+ uint8_t bank_registers[8];
+ uint8_t mirroring;
+
+ uint8_t irq_latch;
+ uint8_t irq_counter;
+ uint8_t irq_reload;
+ uint8_t irq_enabled;
+
+ uint8_t last_a12;
+} __attribute__((packed, aligned(64)));