mirror of
https://github.com/holub/mame
synced 2025-05-23 06:08:48 +03:00
Corrected I/O timer, no whatsnew
This commit is contained in:
parent
25cd094a47
commit
435dedd3fa
@ -111,6 +111,8 @@ static TIMER_CALLBACK( snes_update_io )
|
|||||||
const address_space *cpu0space = cpu_get_address_space(state->maincpu, ADDRESS_SPACE_PROGRAM);
|
const address_space *cpu0space = cpu_get_address_space(state->maincpu, ADDRESS_SPACE_PROGRAM);
|
||||||
state->io_read(cpu0space->machine);
|
state->io_read(cpu0space->machine);
|
||||||
snes_ram[HVBJOY] &= 0xfe; /* Clear busy bit */
|
snes_ram[HVBJOY] &= 0xfe; /* Clear busy bit */
|
||||||
|
|
||||||
|
timer_adjust_oneshot(state->io_timer, attotime_never, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static TIMER_CALLBACK( snes_scanline_tick )
|
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) */
|
/* 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
|
// hdma reset happens at scanline 0, H=~6
|
||||||
|
Loading…
Reference in New Issue
Block a user