From 5808f00555c48e1cc1cc110af6a5cd73ddf13010 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Fri, 2 May 2025 23:15:47 +0200 Subject: cleanup and rewrite of ppu_registers.c --- mapper.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 mapper.h (limited to 'mapper.h') 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; -}; - -- cgit v1.2.3