summaryrefslogtreecommitdiff
path: root/mapper.h
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-06 12:27:12 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-06 12:27:12 +0200
commit39715ca6bf65d2e2dd889cdef4b39d584464d9e7 (patch)
tree39390f6fadd0ddbe913ae66e11847b8b3e7b16bb /mapper.h
parentdabd7a5848e6aa55e91cf4c804f6236b4f7fe30e (diff)
added more mappers (buggy)
Diffstat (limited to 'mapper.h')
-rw-r--r--mapper.h11
1 files changed, 10 insertions, 1 deletions
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;
};