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_000b.c | |
| parent | 9463faa436e1b981ef72000568445a83682f2658 (diff) | |
cleanup and rewrite of ppu_registers.c
Diffstat (limited to 'mapper_000b.c')
| -rw-r--r-- | mapper_000b.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/mapper_000b.c b/mapper_000b.c deleted file mode 100644 index 9252060..0000000 --- a/mapper_000b.c +++ /dev/null @@ -1,27 +0,0 @@ - - -static void mapper_000b_init(struct nes_state *state) { - state->map.m000b.prg_ptr = state->prg_rom; - state->map.m000b.chr_ptr = state->chr_rom; -} - -static uint8_t mapper_000b_prg_read(struct nes_state *state, uint32_t addr) { - if(addr >= 0x8000) { - return state->map.m000b.prg_ptr[addr - 0x8000]; - } - return 0; -} - -static void mapper_000b_prg_write(struct nes_state *state, uint32_t addr, uint8_t value) { - if(addr >= 0x8000) { - state->map.m000b.prg_ptr = state->prg_rom + ((value >> 4) & 7) * 0x8000; - state->map.m000b.chr_ptr = state->chr_rom + (value & 0x0F) * 0x2000; - } -} - -static uint8_t mapper_000b_chr_read(struct nes_state *state, uint32_t addr) { - return state->map.m000b.chr_ptr[addr]; -} - -static void mapper_000b_chr_write(struct nes_state *state, uint32_t addr, uint8_t value) { -} |
