Previous 15994 Revisions Next

r14052 Sunday 15th January, 2012 at 23:09:19 UTC by R. Belmont
SoundBlaster: recognize command 0x10 for Inertia Player [R. Belmont]
[src/mess/machine]isa_sblaster.c

src/mess/machine/isa_sblaster.c
r14051r14052
4141{
4242/*   0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F        */
4343   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 0x */
44   -1, -1, -1, -1,  3, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 1x */
44    2, -1, -1, -1,  3, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 1x */
4545   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 2x */
4646   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 3x */
4747    2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,   -1, -1, -1, -1, -1, /* 4x */
r14051r14052
259259
260260void sb8_device::process_fifo(UINT8 cmd)
261261{
262   printf("%02x\n",cmd);
263
264262   if (m_cmd_fifo_length[cmd] == -1)
265263   {
266264      printf("unemulated or undefined fifo command %02x\n",cmd);
r14051r14052
271269        printf("SB FIFO command: %02x\n", cmd);
272270      switch(cmd)
273271      {
272            case 0x10:  // Direct DAC
273                break;
274
274275            case 0x14:  // 8-bit DMA
275276                m_dsp.dma_length = (m_dsp.fifo[1] + (m_dsp.fifo[2]<<8)) + 1;
276277//                printf("Start DMA (not autoinit, size = %x)\n", m_dsp.dma_length);
r14051r14052
460461UINT8 sb8_device::dack_r(int line)
461462{
462463//    printf("dack_r: line %x out = %02x\n", line, m_dack_out);
464   m_isa->drq1_w(0);   // drop DRQ?
463465    return m_dack_out;
464466}
465467
r14051r14052
470472    if (m_dsp.dma_transferred >= m_dsp.dma_length)
471473    {
472474//        printf("DMA completed\n");
473//        m_isa->drq1_w(1);
474        m_isa->irq5_w(1);
475        m_isa->drq1_w(0);   // drop DRQ?
476        m_isa->irq5_w(1);   // definitely raise IRQ as per the Creative manual
475477    }
476478}
477479

Previous 15994 Revisions Next


© 1998-2018 The MESS Team