summaryrefslogtreecommitdiff
path: root/mapper_0000.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-05-02 23:15:47 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-05-02 23:15:47 +0200
commit5808f00555c48e1cc1cc110af6a5cd73ddf13010 (patch)
treedff942b61441bafe297e7a99f0e799f32ae978b1 /mapper_0000.c
parent9463faa436e1b981ef72000568445a83682f2658 (diff)
cleanup and rewrite of ppu_registers.c
Diffstat (limited to 'mapper_0000.c')
-rw-r--r--mapper_0000.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/mapper_0000.c b/mapper_0000.c
deleted file mode 100644
index e075de5..0000000
--- a/mapper_0000.c
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-static void mapper_0000_init(struct nes_state *state) {
- // Nothing to initialize for 001
-}
-
-__attribute__((hot))
-static uint8_t mapper_0000_prg_read(struct nes_state *state, uint32_t addr) {
- uint32_t prg_size = state->ines.prg_size;
-
- uint32_t mask = (state->ines.prg_size == 16384) ? 0x3fff : 0x7fff;
- return state->prg_rom[addr & mask];
-}
-
-static void mapper_0000_prg_write(struct nes_state *state, uint32_t addr, uint8_t value) {
-}
-
-__attribute__((hot))
-static uint8_t mapper_0000_chr_read(struct nes_state *state, uint32_t addr) {
- return state->chr_rom[addr];
-}
-
-static void mapper_0000_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) {
-}