Previous 15994 Revisions Next

r7657 Sunday 28th March, 2010 at 07:41:36 UTC by Fabio Priuli
[SNES] fixed HDMA regression (it fixes Desert Fighter title screen)
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7656r7657
232232      if (video_screen_get_vpos(machine->primary_screen) > 0)
233233      {
234234         /* Do HDMA */
235         if (state->hdmaen)
235         if (snes_ram[HDMAEN])
236236            snes_hdma(cpu0space);
237237
238238         video_screen_update_partial(machine->primary_screen, (snes_ppu.interlace == 2) ? (snes_ppu.beam.current_vert*snes_ppu.interlace) : snes_ppu.beam.current_vert-1);
r7656r7657
13351335         data = 0;   /* Once DMA is done we need to reset all bits to 0 */
13361336         break;
13371337      case HDMAEN:   /* HDMA channel designation */
1338         state->hdmaen = data;
1339         if (state->hdmaen) //if a HDMA is enabled, data is inited at the next scanline
1338         if (data) //if a HDMA is enabled, data is inited at the next scanline
13401339            timer_set(space->machine, video_screen_get_time_until_pos(space->machine->primary_screen, snes_ppu.beam.current_vert + 1, 0), NULL, 0, snes_reset_hdma);
13411340         break;
13421341      case MEMSEL:   /* Access cycle designation in memory (2) area */
r7656r7657
25122511   snes_state *state = (snes_state *)machine->driver_data;
25132512   int i;
25142513
2514   state->hdmaen = snes_ram[HDMAEN];
25152515   for (i = 0; i < 8; i++)
25162516   {
25172517      if (BIT(state->hdmaen, i))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team