diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-05-02 23:15:47 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-05-02 23:15:47 +0200 |
| commit | 5808f00555c48e1cc1cc110af6a5cd73ddf13010 (patch) | |
| tree | dff942b61441bafe297e7a99f0e799f32ae978b1 /mapper.h | |
| parent | 9463faa436e1b981ef72000568445a83682f2658 (diff) | |
cleanup and rewrite of ppu_registers.c
Diffstat (limited to 'mapper.h')
| -rw-r--r-- | mapper.h | 30 |
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; -}; - |
