src/mess/machine/isa_gus.c
| r14453 | r14454 | |
| 144 | 144 | } |
| 145 | 145 | break; |
| 146 | 146 | 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); |
| 149 | 148 | break; |
| 150 | 149 | case VOL_RAMP_TIMER: |
| 151 | 150 | for(x=0;x<32;x++) |
| r14453 | r14454 | |
| 1147 | 1146 | { |
| 1148 | 1147 | // end of transfer |
| 1149 | 1148 | m_dmatimer->adjust(attotime::zero,0,attotime::never); |
| 1149 | m_drq1(0); |
| 1150 | 1150 | if(m_dma_dram_ctrl & 0x20) |
| 1151 | 1151 | { |
| 1152 | 1152 | m_dma_dram_ctrl |= 0x40; |
| 1153 | 1153 | m_dma_irq_func(1); |
| 1154 | 1154 | } |
| 1155 | logerror("GUS: End of transfer. (%05x)\n",m_dma_current); |
| 1155 | 1156 | } |
| 1156 | 1157 | |
| 1157 | 1158 | |
| r14453 | r14454 | |
| 1647 | 1648 | |
| 1648 | 1649 | UINT8 isa16_gus_device::dack_r(int line) |
| 1649 | 1650 | { |
| 1650 | | // if(line == m_gf1->dma_channel1()) |
| 1651 | if(line == m_gf1->dma_channel1()) |
| 1651 | 1652 | return m_gf1->dack_r(line); |
| 1652 | | // else |
| 1653 | | // return 0; |
| 1653 | else |
| 1654 | return 0; |
| 1654 | 1655 | } |
| 1655 | 1656 | |
| 1656 | 1657 | void isa16_gus_device::dack_w(int line,UINT8 data) |