Previous 15994 Revisions Next

r7766 Thursday 8th April, 2010 at 17:23:41 UTC by Angelo Salese
[SNES]: Fixed a bug with un-inited DMA regs, fixes at least a long-standing bug with Super Soccer dimmed team selection screen
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7765r7766
17211721   snes_ram[WRDIVL] = 0xff;
17221722   snes_ram[WRDIVH] = 0xff;
17231723
1724   /* init DMA regs to be 0xff */
1725   {
1726      int i;
1727
1728      for(i=0;i<8;i++)
1729      {
1730         state->dma_channel[i].dmap = 0xff;
1731         state->dma_channel[i].dest_addr = 0xff;
1732         state->dma_channel[i].src_addr = 0xffff;
1733         state->dma_channel[i].bank = 0xff;
1734         state->dma_channel[i].trans_size = 0xffff;
1735         state->dma_channel[i].ibank = 0xff;
1736         state->dma_channel[i].hdma_addr = 0xffff;
1737         state->dma_channel[i].hdma_line_counter = 0xff;
1738         state->dma_channel[i].unk = 0xff;
1739      }
1740   }
1741
17241742   switch (snes_has_addon_chip)
17251743   {
17261744      case HAS_SDD1:
r7765r7766
20532071
20542072            bbus = state->dma_channel[i].dest_addr + 0x2100;
20552073
2074
2075
20562076            switch (state->dma_channel[i].dmap & 0x07)
20572077            {
20582078            case 0:      /* 1 register write once             (1 byte:  p               ) */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team