diff options
Diffstat (limited to 'src/emu/sound/asc.c')
-rw-r--r-- | src/emu/sound/asc.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/emu/sound/asc.c b/src/emu/sound/asc.c index 4be28c40bef..0f8cc96de70 100644 --- a/src/emu/sound/asc.c +++ b/src/emu/sound/asc.c @@ -4,7 +4,7 @@ Apple Sound Chip (ASC) 344S0063 Enhanced Apple Sound Chip (EASC) 343S1063 - + Emulation by R. Belmont Registers: @@ -190,7 +190,7 @@ void asc_device::stream_generate(stream_sample_t **inputs, stream_sample_t **out m_fifo_a_rdptr &= 0x3ff; m_fifo_cap_a--; } - + if (m_fifo_cap_b) { m_fifo_b_rdptr++; @@ -249,7 +249,7 @@ void asc_device::stream_generate(stream_sample_t **inputs, stream_sample_t **out INT8 smpl; mixL = mixR = 0; - + // update channel pointers for (ch = 0; ch < 4; ch++) { @@ -284,7 +284,7 @@ UINT8 asc_device::read(UINT16 offset) { UINT8 rv; -// printf("ASC: read at %x\n", offset); +// printf("ASC: read at %x\n", offset); // not sure what actually happens when the CPU reads the FIFO... if (offset < 0x400) @@ -416,7 +416,7 @@ UINT8 asc_device::read(UINT16 offset) void asc_device::write(UINT16 offset, UINT8 data) { -// printf("ASC: write %02x to %x\n", data, offset); +// printf("ASC: write %02x to %x\n", data, offset); if (offset < 0x400) { @@ -450,7 +450,7 @@ void asc_device::write(UINT16 offset, UINT8 data) } m_fifo_b_wrptr &= 0x3ff; - } + } else { m_fifo_b[offset-0x400] = data; @@ -458,7 +458,7 @@ void asc_device::write(UINT16 offset, UINT8 data) } else { -// printf("ASC: %02x to %x (was %x)\n", data, offset, m_regs[offset-0x800]); +// printf("ASC: %02x to %x (was %x)\n", data, offset, m_regs[offset-0x800]); stream_update(m_stream); switch (offset) @@ -484,10 +484,10 @@ void asc_device::write(UINT16 offset, UINT8 data) break; case R_WTCONTROL: -// printf("One-shot wavetable %02x\n", data); +// printf("One-shot wavetable %02x\n", data); break; - case 0x811: + case 0x811: m_phase[0] &= 0x00ffff; m_phase[0] |= data<<16; break; @@ -502,7 +502,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_phase[0] |= data; break; - case 0x815: + case 0x815: m_incr[0] &= 0x00ffff; m_incr[0] |= data<<16; break; @@ -517,7 +517,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_incr[0] |= data; break; - case 0x819: + case 0x819: m_phase[1] &= 0x00ffff; m_phase[1] |= data<<16; break; @@ -532,7 +532,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_phase[1] |= data; break; - case 0x81d: + case 0x81d: m_incr[1] &= 0x00ffff; m_incr[1] |= data<<16; break; @@ -547,7 +547,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_incr[1] |= data; break; - case 0x821: + case 0x821: m_phase[2] &= 0x00ffff; m_phase[2] |= data<<16; break; @@ -562,7 +562,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_phase[2] |= data; break; - case 0x825: + case 0x825: m_incr[2] &= 0x00ffff; m_incr[2] |= data<<16; break; @@ -577,7 +577,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_incr[2] |= data; break; - case 0x829: + case 0x829: m_phase[3] &= 0x00ffff; m_phase[3] |= data<<16; break; @@ -592,7 +592,7 @@ void asc_device::write(UINT16 offset, UINT8 data) m_phase[3] |= data; break; - case 0x82d: + case 0x82d: m_incr[3] &= 0x00ffff; m_incr[3] |= data<<16; break; |