From 39715ca6bf65d2e2dd889cdef4b39d584464d9e7 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sun, 6 Apr 2025 12:27:12 +0200 Subject: added more mappers (buggy) --- mapper.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mapper.h') diff --git a/mapper.h b/mapper.h index e7e1437..808bc4e 100644 --- a/mapper.h +++ b/mapper.h @@ -1,9 +1,14 @@ +#include "mapper_0003.h" +#include "mapper_0007.h" +#include "mapper_000b.h" #include "mapper_0042.h" +#include "mapper_2002.h" +struct nes_state; struct mapper_entry { - int id; + uint64_t id; uint8_t (*prg_read)(struct nes_state *state, uint32_t addr); void (*prg_write)(struct nes_state *state, uint32_t addr, uint8_t value); uint8_t (*chr_read)(struct nes_state *state, uint32_t addr); @@ -15,6 +20,10 @@ struct mapper_entry { }; union mapper_data { + struct mapper_0003 m0003; + struct mapper_0007 m0007; + struct mapper_000b m000b; struct mapper_0042 m0042; + struct mapper_2002 m2002; }; -- cgit v1.2.3