diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 13:54:50 +0100 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 13:54:50 +0100 |
| commit | 46d0f6aeb1588b85852487e581a8b4c9c2401646 (patch) | |
| tree | ca93ed439b297fe8f59841b6885ba65ded81f9a3 /mappers/mapper_004_0.c | |
| parent | fc41466fe825eae4e5c2e2f4764482c53c687679 (diff) | |
Add MMC5, not in a working state, but can start castlevania iii, this is a horrible mapper to implement.
Diffstat (limited to 'mappers/mapper_004_0.c')
| -rw-r--r-- | mappers/mapper_004_0.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
