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. --- mappers/mapper_004_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mappers/mapper_004_0.c') diff --git a/mappers/mapper_004_0.c b/mappers/mapper_004_0.c index 34970d6..2104c3d 100644 --- a/mappers/mapper_004_0.c +++ b/mappers/mapper_004_0.c @@ -159,12 +159,12 @@ static void mapper_004_0_ciram_write(struct nes_state *state, uint32_t addr, uin } } -static void mapper_004_0_tick(struct nes_state *state) { +static void mapper_004_0_tick(struct nes_state *state, uint16_t scanline, uint16_t dot) { struct mapper_004_0 *mapper = &state->mapper_data.m004_0; // clock IRQ counter once per scanline at dot 260 // this approximates the filtered A12 behavior - if(state->ppu.dot == 260 && state->ppu.scanline < 240) { + if(dot == 260 && scanline < 240) { if(mapper->irq_counter == 0 || mapper->irq_reload) { mapper->irq_counter = mapper->irq_latch; if(mapper->irq_reload) { -- cgit v1.2.3