Previous 15994 Revisions Next

r7684 Saturday 3rd April, 2010 at 15:45:40 UTC by Angelo Salese
Corrected I/O timer
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7683r7684
111111   const address_space *cpu0space = cpu_get_address_space(state->maincpu, ADDRESS_SPACE_PROGRAM);
112112   state->io_read(cpu0space->machine);
113113   snes_ram[HVBJOY] &= 0xfe;      /* Clear busy bit */
114
115   timer_adjust_oneshot(state->io_timer, attotime_never, 0);
114116}
115117
116118static TIMER_CALLBACK( snes_scanline_tick )
r7683r7684
178180      }
179181
180182      /* three lines after start of vblank we update the controllers (value from snes9x) */
181      timer_adjust_oneshot(state->io_timer, video_screen_get_time_until_pos(machine->primary_screen, snes_ppu.beam.current_vert + 2, 0), 0);
183      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);
182184   }
183185
184186   // hdma reset happens at scanline 0, H=~6

Previous 15994 Revisions Next


© 1998-2018 The MESS Team