Previous 15994 Revisions Next

r14454 Tuesday 14th February, 2012 at 10:05:58 UTC by Barry Rodewald
isa_gus: Fixed DMA read transfers from DRAM. The GUS installer's DMA tests now pass. (no whatsnew)
[src/mess/machine]isa_gus.c

src/mess/machine/isa_gus.c
r14453r14454
144144      }
145145      break;
146146   case DMA_TIMER:
147      if(!(m_dma_dram_ctrl & 0x02))  // transfer direction (1=read from DRAM, 0=write to DRAM)
148         m_drq1(1);
147      m_drq1(1);
149148      break;
150149   case VOL_RAMP_TIMER:
151150      for(x=0;x<32;x++)
r14453r14454
11471146{
11481147   // end of transfer
11491148   m_dmatimer->adjust(attotime::zero,0,attotime::never);
1149   m_drq1(0);
11501150   if(m_dma_dram_ctrl & 0x20)
11511151   {
11521152      m_dma_dram_ctrl |= 0x40;
11531153      m_dma_irq_func(1);
11541154   }
1155   logerror("GUS: End of transfer. (%05x)\n",m_dma_current);
11551156}
11561157
11571158
r14453r14454
16471648
16481649UINT8 isa16_gus_device::dack_r(int line)
16491650{
1650//   if(line == m_gf1->dma_channel1())
1651   if(line == m_gf1->dma_channel1())
16511652      return m_gf1->dack_r(line);
1652//   else
1653//      return 0;
1653   else
1654      return 0;
16541655}
16551656
16561657void isa16_gus_device::dack_w(int line,UINT8 data)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team