summaryrefslogtreecommitdiff
path: root/mapper.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-21 14:06:43 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-21 14:06:43 +0200
commit19f119e49c91580f49bb02f86bb905a05ba90d6b (patch)
tree1fb671eb5bec6cd723e3708e0085280aee926547 /mapper.c
parent6321f071ed2ab36242e857a9414b7f4c53092d72 (diff)
back to 2560fps after wrangling the ppu_state into two cachelines
Diffstat (limited to 'mapper.c')
-rw-r--r--mapper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mapper.c b/mapper.c
index 6d4891b..935ff61 100644
--- a/mapper.c
+++ b/mapper.c
@@ -37,6 +37,7 @@ static void mapper_default_tick(struct nes_state *state) { // No IRQ or timing l
*/
static struct mapper_entry mapper_table[] = {
/* Mapper: 0 */ { 0x00, mapper_0000_prg_read, mapper_0000_prg_write, mapper_0000_chr_read, mapper_0000_chr_write, mapper_default_ciram_read, mapper_default_ciram_write, mapper_default_tick, mapper_0000_init },
+/* Mapper: 2 */ { 0x02, mapper_2002_prg_read, mapper_2002_prg_write, mapper_2002_chr_read, mapper_2002_chr_write, mapper_default_ciram_read, mapper_default_ciram_write, mapper_default_tick, mapper_2002_init },
/* Mapper: 3 */ { 0x03, mapper_0003_prg_read, mapper_0003_prg_write, mapper_0003_chr_read, mapper_0003_chr_write, mapper_default_ciram_read, mapper_default_ciram_write, mapper_default_tick, mapper_0003_init },
/* Mapper: 7 */ { 0x7, mapper_0007_prg_read, mapper_0007_prg_write, mapper_0007_chr_read, mapper_0007_chr_write, mapper_0007_ciram_read, mapper_0007_ciram_write, mapper_default_tick, mapper_0007_init },
/* Mapper: b */ { 0x0b, mapper_000b_prg_read, mapper_000b_prg_write, mapper_000b_chr_read, mapper_000b_chr_write, mapper_default_ciram_read, mapper_default_ciram_write, mapper_default_tick, mapper_000b_init },