summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2010-04-03 15:45:49 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2010-04-03 15:45:49 +0000
commit435dedd3fa0b6f5b9993701a4c9b69af9e2809cc (patch)
tree1329db0f7ba389996504d0e20870fd26d34c2af8
parent25cd094a47a350a8f94c9c7e9d71a7bf08b41496 (diff)
Corrected I/O timer, no whatsnew
-rw-r--r--src/mame/machine/snes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/machine/snes.c b/src/mame/machine/snes.c
index 8391ca07dc8..39819f5db31 100644
--- a/src/mame/machine/snes.c
+++ b/src/mame/machine/snes.c
@@ -111,6 +111,8 @@ static TIMER_CALLBACK( snes_update_io )
const address_space *cpu0space = cpu_get_address_space(state->maincpu, ADDRESS_SPACE_PROGRAM);
state->io_read(cpu0space->machine);
snes_ram[HVBJOY] &= 0xfe; /* Clear busy bit */
+
+ timer_adjust_oneshot(state->io_timer, attotime_never, 0);
}
static TIMER_CALLBACK( snes_scanline_tick )
@@ -178,7 +180,7 @@ static TIMER_CALLBACK( snes_scanline_tick )
}
/* three lines after start of vblank we update the controllers (value from snes9x) */
- timer_adjust_oneshot(state->io_timer, video_screen_get_time_until_pos(machine->primary_screen, snes_ppu.beam.current_vert + 2, 0), 0);
+ timer_adjust_oneshot(state->io_timer, video_screen_get_time_until_pos(machine->primary_screen, snes_ppu.beam.current_vert + 2, state->hblank_offset * state->htmult), 0);
}
// hdma reset happens at scanline 0, H=~6