From 46d0f6aeb1588b85852487e581a8b4c9c2401646 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sun, 2 Nov 2025 13:54:50 +0100 Subject: Add MMC5, not in a working state, but can start castlevania iii, this is a horrible mapper to implement. --- mknes_mapper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mknes_mapper.h') diff --git a/mknes_mapper.h b/mknes_mapper.h index 36d711a..923d7b8 100644 --- a/mknes_mapper.h +++ b/mknes_mapper.h @@ -6,6 +6,7 @@ #include "mappers/mapper_003_1.h" #include "mappers/mapper_003_2.h" #include "mappers/mapper_004_0.h" +#include "mappers/mapper_005_0.h" #include "mappers/mapper_007_2.h" #include "mappers/mapper_011_0.h" #include "mappers/mapper_066_0.h" @@ -21,7 +22,7 @@ struct mapper_functions { 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 (*tick)(struct nes_state *state, uint16_t scanline, uint16_t dot); } __attribute__((aligned(64))); union mapper_data { @@ -32,6 +33,7 @@ union mapper_data { struct mapper_003_1 m003_1; struct mapper_003_2 m003_2; struct mapper_004_0 m004_0; + struct mapper_005_0 m005_0; struct mapper_007_2 m007_2; struct mapper_011_0 m011_0; struct mapper_066_0 m066_0; -- cgit v1.2.3