Additional comments in sb_dsp.c

This commit is contained in:
Jasmine Iwanek
2022-02-03 05:47:56 -05:00
parent c7824e8ddc
commit e32a84528d

View File

@@ -533,6 +533,8 @@ sb_exec_command(sb_dsp_t *dsp)
case 0x24: /* 8-bit single cycle DMA input */ case 0x24: /* 8-bit single cycle DMA input */
sb_start_dma_i(dsp, 1, 0, 0, dsp->sb_data[0] + (dsp->sb_data[1] << 8)); sb_start_dma_i(dsp, 1, 0, 0, dsp->sb_data[0] + (dsp->sb_data[1] << 8));
break; break;
case 0x28: /* Direct ADC, 8-bit (Burst) */
break;
case 0x2C: /* 8-bit autoinit DMA input */ case 0x2C: /* 8-bit autoinit DMA input */
if (dsp->sb_type >= SB15) if (dsp->sb_type >= SB15)
sb_start_dma_i(dsp, 1, 1, 0, dsp->sb_data[0] + (dsp->sb_data[1] << 8)); sb_start_dma_i(dsp, 1, 1, 0, dsp->sb_data[0] + (dsp->sb_data[1] << 8));
@@ -547,6 +549,10 @@ sb_exec_command(sb_dsp_t *dsp)
dsp->midi_in_poll = 0; dsp->midi_in_poll = 0;
dsp->uart_irq = 1; dsp->uart_irq = 1;
break; break;
case 0x32: /* MIDI Read Timestamp Poll */
break;
case 0x33: /* MIDI Read Timestamp Interrupt */
break;
case 0x34: /* MIDI In poll */ case 0x34: /* MIDI In poll */
if (dsp->sb_type < SB2) if (dsp->sb_type < SB2)
break; break;
@@ -594,6 +600,10 @@ sb_exec_command(sb_dsp_t *dsp)
dsp->sb_8051_ram[0x14] = (dsp->sb_freq >> 8) & 0xff; dsp->sb_8051_ram[0x14] = (dsp->sb_freq >> 8) & 0xff;
} }
break; break;
case 0x45: /* Continue Auto-Initialize DMA, 8-bit */
break;
case 0x47: /* Continue Auto-Initialize DMA, 16-bit */
break;
case 0x48: /* Set DSP block transfer size */ case 0x48: /* Set DSP block transfer size */
dsp->sb_8_autolen = dsp->sb_data[0] + (dsp->sb_data[1] << 8); dsp->sb_8_autolen = dsp->sb_data[0] + (dsp->sb_data[1] << 8);
break; break;
@@ -864,7 +874,7 @@ sb_exec_command(sb_dsp_t *dsp)
if (dsp->sb_asp_mode & 4) if (dsp->sb_asp_mode & 4)
dsp->sb_asp_ram_index = 0; dsp->sb_asp_ram_index = 0;
sb_dsp_log("SB16 ASP set mode %02X\n", dsp->sb_asp_mode); sb_dsp_log("SB16 ASP set mode %02X\n", dsp->sb_asp_mode);
} } /* else DSP Status (Obsolete) */
break; break;
case 0x05: /* ASP set codec parameter */ case 0x05: /* ASP set codec parameter */
if (dsp->sb_type >= SB16) if (dsp->sb_type >= SB16)