summaryrefslogtreecommitdiff
path: root/mapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'mapper.h')
-rw-r--r--mapper.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/mapper.h b/mapper.h
deleted file mode 100644
index 73fafc0..0000000
--- a/mapper.h
+++ /dev/null
@@ -1,30 +0,0 @@
-
-// #include "mapper_0000.h" // NOTE(peter): Has no header
-#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 {
- 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);
- void (*chr_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- uint8_t (*ciram_read)(struct nes_state *state, uint32_t addr);
- void (*ciram_write)(struct nes_state *state, uint32_t addr, uint8_t value);
- void (*tick)(struct nes_state *state);
- void (*init)(struct nes_state *state);
-};
-
-union mapper_data {
- struct mapper_0003 m0003;
- struct mapper_0007 m0007;
- struct mapper_000b m000b;
- struct mapper_0042 m0042;
- struct mapper_2002 m2002;
-};
-