summaryrefslogtreecommitdiff
path: root/mappers/mapper_004_0.c
diff options
context:
space:
mode:
Diffstat (limited to 'mappers/mapper_004_0.c')
-rw-r--r--mappers/mapper_004_0.c4
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) {