diff options
Diffstat (limited to 'src/emu/sound')
-rw-r--r-- | src/emu/sound/asc.c | 36 | ||||
-rw-r--r-- | src/emu/sound/disc_dev.c | 2 | ||||
-rw-r--r-- | src/emu/sound/disc_mth.c | 698 |
3 files changed, 368 insertions, 368 deletions
diff --git a/src/emu/sound/asc.c b/src/emu/sound/asc.c index 4038ba9a6a1..d591fca2548 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: @@ -212,7 +212,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++; @@ -283,7 +283,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++) { @@ -309,7 +309,7 @@ void asc_device::stream_generate(stream_sample_t **inputs, stream_sample_t **out break; } -// printf("rdA %04x rdB %04x wrA %04x wrB %04x (capA %04x B %04x)\n", m_fifo_a_rdptr, m_fifo_b_rdptr, m_fifo_a_wrptr, m_fifo_b_wrptr, m_fifo_cap_a, m_fifo_cap_b); +// printf("rdA %04x rdB %04x wrA %04x wrB %04x (capA %04x B %04x)\n", m_fifo_a_rdptr, m_fifo_b_rdptr, m_fifo_a_wrptr, m_fifo_b_wrptr, m_fifo_cap_a, m_fifo_cap_b); } //------------------------------------------------- @@ -320,7 +320,7 @@ READ8_MEMBER( asc_device::read ) { 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) @@ -394,7 +394,7 @@ READ8_MEMBER( asc_device::read ) rv = m_regs[R_FIFOSTAT-0x800]; } -// printf("Read FIFO stat = %02x\n", rv); +// printf("Read FIFO stat = %02x\n", rv); // reading this register clears all bits m_regs[R_FIFOSTAT-0x800] = 0; @@ -454,7 +454,7 @@ READ8_MEMBER( asc_device::read ) WRITE8_MEMBER( asc_device::write ) { -// printf("ASC: write %02x to %x\n", data, offset); +// printf("ASC: write %02x to %x\n", data, offset); if (offset < 0x400) { @@ -488,7 +488,7 @@ WRITE8_MEMBER( asc_device::write ) } m_fifo_b_wrptr &= 0x3ff; - } + } else { m_fifo_b[offset-0x400] = data; @@ -496,7 +496,7 @@ WRITE8_MEMBER( asc_device::write ) } 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) @@ -531,10 +531,10 @@ WRITE8_MEMBER( asc_device::write ) 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; @@ -549,7 +549,7 @@ WRITE8_MEMBER( asc_device::write ) m_phase[0] |= data; break; - case 0x815: + case 0x815: m_incr[0] &= 0x00ffff; m_incr[0] |= data<<16; break; @@ -564,7 +564,7 @@ WRITE8_MEMBER( asc_device::write ) m_incr[0] |= data; break; - case 0x819: + case 0x819: m_phase[1] &= 0x00ffff; m_phase[1] |= data<<16; break; @@ -579,7 +579,7 @@ WRITE8_MEMBER( asc_device::write ) m_phase[1] |= data; break; - case 0x81d: + case 0x81d: m_incr[1] &= 0x00ffff; m_incr[1] |= data<<16; break; @@ -594,7 +594,7 @@ WRITE8_MEMBER( asc_device::write ) m_incr[1] |= data; break; - case 0x821: + case 0x821: m_phase[2] &= 0x00ffff; m_phase[2] |= data<<16; break; @@ -609,7 +609,7 @@ WRITE8_MEMBER( asc_device::write ) m_phase[2] |= data; break; - case 0x825: + case 0x825: m_incr[2] &= 0x00ffff; m_incr[2] |= data<<16; break; @@ -624,7 +624,7 @@ WRITE8_MEMBER( asc_device::write ) m_incr[2] |= data; break; - case 0x829: + case 0x829: m_phase[3] &= 0x00ffff; m_phase[3] |= data<<16; break; @@ -639,7 +639,7 @@ WRITE8_MEMBER( asc_device::write ) m_phase[3] |= data; break; - case 0x82d: + case 0x82d: m_incr[3] &= 0x00ffff; m_incr[3] |= data<<16; break; diff --git a/src/emu/sound/disc_dev.c b/src/emu/sound/disc_dev.c index 786883593a7..57799fdb40b 100644 --- a/src/emu/sound/disc_dev.c +++ b/src/emu/sound/disc_dev.c @@ -547,7 +547,7 @@ DISCRETE_STEP(dsd_555_mstbl) if (UNEXPECTED(DSD_555_MSTBL__C == 0)) { /* The trigger voltage goes high because the cap circuit is open. - * and the cap discharges */ + * and the cap discharges */ v_cap = info->v_pos; /* needed for cap output type */ context->cap_voltage = 0; diff --git a/src/emu/sound/disc_mth.c b/src/emu/sound/disc_mth.c index c3ed99658f9..e26d86885f6 100644 --- a/src/emu/sound/disc_mth.c +++ b/src/emu/sound/disc_mth.c @@ -2300,7 +2300,7 @@ DISCRETE_STEP(dst_xtime_and) //case XTIME__IN0_0__IN1_0__IN0_X__IN1_NOX: //case XTIME__IN0_0__IN1_1__IN0_NOX__IN1_X: //case XTIME__IN0_1__IN1_0__IN0_X__IN1_NOX: - // break; + // break; case XTIME__IN0_1__IN1_1__IN0_NOX__IN1_NOX: out = 1; @@ -2308,52 +2308,52 @@ DISCRETE_STEP(dst_xtime_and) case XTIME__IN0_0__IN1_1__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------- - * ...^....^... - * - * in1 1 ------------- - * 0 - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------- + * ...^....^... + * + * in1 1 ------------- + * 0 + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time0; break; case XTIME__IN0_1__IN1_0__IN0_NOX__IN1_X: /* - * in0 1 ------------- - * 0 - * ...^....^... - * - * in1 1 ------ - * 0 ------- - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------------- + * 0 + * ...^....^... + * + * in1 1 ------ + * 0 ------- + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time1; break; case XTIME__IN0_0__IN1_0__IN0_X__IN1_X: /* - * in0 1 ----- ------- - * 0 -------- ------ - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ------ -------- - * ...^....^... ...^....^... - * - * out 1 ----- ----- - * 0 ------- ------- - * ...^....^... ...^....^... - */ + * in0 1 ----- ------- + * 0 -------- ------ + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ------ -------- + * ...^....^... ...^....^... + * + * out 1 ----- ----- + * 0 ------- ------- + * ...^....^... ...^....^... + */ // use x_time of input that went to 0 first/longer if (x_time0 >= x_time1) x_time = x_time0; @@ -2363,92 +2363,92 @@ DISCRETE_STEP(dst_xtime_and) case XTIME__IN0_0__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 -- - * 0 ----- ----- ------------ - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 -- + * 0 ----- ----- ------------ + * ...^....^... ...^....^... + */ // may have went high for a bit in this cycle //if (x_time0 < x_time1) - // x_time = time1 - x_time0; + // x_time = time1 - x_time0; break; case XTIME__IN0_1__IN1_0__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 -- - * 0 ----- ----- ------------ - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 -- + * 0 ----- ----- ------------ + * ...^....^... ...^....^... + */ // may have went high for a bit in this cycle //if (x_time0 > x_time1) - // x_time = x_time0 - x_time1; + // x_time = x_time0 - x_time1; break; case XTIME__IN0_1__IN1_1__IN0_NOX__IN1_X: /* - * in0 1 ------------ - * 0 - * ...^....^... - * - * in1 1 ------ - * 0 ------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------------ + * 0 + * ...^....^... + * + * in1 1 ------ + * 0 ------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 1; x_time = x_time1; break; case XTIME__IN0_1__IN1_1__IN0_X__IN1_NOX: /* - * in1 0 ------ - * 0 ------ - * ...^....^... - * - * in1 1 ------------ - * 0 - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in1 0 ------ + * 0 ------ + * ...^....^... + * + * in1 1 ------------ + * 0 + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 1; x_time = x_time0; break; case XTIME__IN0_1__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------ -------- - * 0 ------ ---- - * ...^....^... ...^....^... - * - * in1 1 -------- ------ - * 0 ---- ------ - * ...^....^... ...^....^... - * - * out 1 ------ ------ - * 0 ------ ------ - * ...^....^... ...^....^... - */ + * in0 1 ------ -------- + * 0 ------ ---- + * ...^....^... ...^....^... + * + * in1 1 -------- ------ + * 0 ---- ------ + * ...^....^... ...^....^... + * + * out 1 ------ ------ + * 0 ------ ------ + * ...^....^... ...^....^... + */ out = 1; if (x_time0 < x_time1) x_time = x_time0; @@ -2520,7 +2520,7 @@ DISCRETE_STEP(dst_xtime_or) //case XTIME__IN0_0__IN1_1__IN0_X__IN1_NOX: //case XTIME__IN0_1__IN1_1__IN0_NOX__IN1_X: //case XTIME__IN0_1__IN1_1__IN0_X__IN1_NOX: - // break; + // break; case XTIME__IN0_0__IN1_0__IN0_NOX__IN1_NOX: out = 0; @@ -2528,54 +2528,54 @@ DISCRETE_STEP(dst_xtime_or) case XTIME__IN0_0__IN1_0__IN0_NOX__IN1_X: /* - * in0 1 - * 0 ------------- - * ...^....^... - * - * in1 1 ------ - * 0 ------- - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 + * 0 ------------- + * ...^....^... + * + * in1 1 ------ + * 0 ------- + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 0; x_time = x_time1; break; case XTIME__IN0_0__IN1_0__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------- - * ...^....^... - * - * in1 1 - * 0 ------------- - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------- + * ...^....^... + * + * in1 1 + * 0 ------------- + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 0; x_time = x_time0; break; case XTIME__IN0_0__IN1_0__IN0_X__IN1_X: /* - * in0 1 ----- ------- - * 0 -------- ------ - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ------ -------- - * ...^....^... ...^....^... - * - * out 1 ------- ------- - * 0 ----- ----- - * ...^....^... ...^....^... - */ + * in0 1 ----- ------- + * 0 -------- ------ + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ------ -------- + * ...^....^... ...^....^... + * + * out 1 ------- ------- + * 0 ----- ----- + * ...^....^... ...^....^... + */ out = 0; // use x_time of input that was 1 last/longer // this means at 0 for less x_time @@ -2587,94 +2587,94 @@ DISCRETE_STEP(dst_xtime_or) case XTIME__IN0_0__IN1_1__IN0_NOX__IN1_X: /* - * in0 1 - * 0 ------------ - * ...^....^... - * - * in1 1 ------ - * 0 ------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 + * 0 ------------ + * ...^....^... + * + * in1 1 ------ + * 0 ------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time1; break; case XTIME__IN0_1__IN1_0__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------ - * ...^....^... - * - * in1 1 - * 0 ------------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------ + * ...^....^... + * + * in1 1 + * 0 ------------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time0; break; case XTIME__IN0_0__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 ------------ ----- ----- - * 0 -- - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 ------------ ----- ----- + * 0 -- + * ...^....^... ...^....^... + */ // if (x_time0 > x_time1) /* Not sure if it is better to use 1 - * or the total energy which would smear the switch points together. - * Let's try just using 1 */ + * or the total energy which would smear the switch points together. + * Let's try just using 1 */ //x_time = xtime_0 - xtime_1; break; case XTIME__IN0_1__IN1_0__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 ------------ ----- ----- - * 0 -- - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 ------------ ----- ----- + * 0 -- + * ...^....^... ...^....^... + */ //if (x_time0 < x_time1) /* Not sure if it is better to use 1 - * or the total energy which would smear the switch points together. - * Let's try just using 1 */ + * or the total energy which would smear the switch points together. + * Let's try just using 1 */ //x_time = xtime_1 - xtime_0; break; case XTIME__IN0_1__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------ -------- - * 0 ------ ---- - * ...^....^... ...^....^... - * - * in1 1 -------- ------ - * 0 ---- ------ - * ...^....^... ...^....^... - * - * out 1 -------- -------- - * 0 ---- ---- - * ...^....^... ...^....^... - */ + * in0 1 ------ -------- + * 0 ------ ---- + * ...^....^... ...^....^... + * + * in1 1 -------- ------ + * 0 ---- ------ + * ...^....^... ...^....^... + * + * out 1 -------- -------- + * 0 ---- ---- + * ...^....^... ...^....^... + */ if (x_time0 > x_time1) x_time = x_time0; else @@ -2740,7 +2740,7 @@ DISCRETE_STEP(dst_xtime_xor) // these are all 1 //case XTIME__IN0_0__IN1_1__IN0_NOX__IN1_NOX: //case XTIME__IN0_1__IN1_0__IN0_NOX__IN1_NOX: - // break; + // break; case XTIME__IN0_1__IN1_1__IN0_NOX__IN1_NOX: case XTIME__IN0_0__IN1_0__IN0_NOX__IN1_NOX: @@ -2749,196 +2749,196 @@ DISCRETE_STEP(dst_xtime_xor) case XTIME__IN0_1__IN1_0__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------ - * ...^....^... - * - * in1 1 - * 0 ------------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------ + * ...^....^... + * + * in1 1 + * 0 ------------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ case XTIME__IN0_0__IN1_1__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------- - * ...^....^... - * - * in1 1 ------------- - * 0 - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------- + * ...^....^... + * + * in1 1 ------------- + * 0 + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time0; break; case XTIME__IN0_0__IN1_1__IN0_NOX__IN1_X: /* - * in0 1 - * 0 ------------ - * ...^....^... - * - * in1 1 ------ - * 0 ------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 + * 0 ------------ + * ...^....^... + * + * in1 1 ------ + * 0 ------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ case XTIME__IN0_1__IN1_0__IN0_NOX__IN1_X: /* - * in0 1 ------------- - * 0 - * ...^....^... - * - * in1 1 ------ - * 0 ------- - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------------- + * 0 + * ...^....^... + * + * in1 1 ------ + * 0 ------- + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ x_time = x_time1; break; case XTIME__IN0_0__IN1_0__IN0_X__IN1_NOX: /* - * in0 1 ------ - * 0 ------ - * ...^....^... - * - * in1 1 - * 0 ------------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------ + * 0 ------ + * ...^....^... + * + * in1 1 + * 0 ------------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ case XTIME__IN0_1__IN1_1__IN0_X__IN1_NOX: /* - * in1 0 ------ - * 0 ------ - * ...^....^... - * - * in1 1 ------------ - * 0 - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in1 0 ------ + * 0 ------ + * ...^....^... + * + * in1 1 ------------ + * 0 + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 0; x_time = x_time0; break; case XTIME__IN0_0__IN1_0__IN0_NOX__IN1_X: /* - * in0 1 - * 0 ------------ - * ...^....^... - * - * in1 1 ------ - * 0 ------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 + * 0 ------------ + * ...^....^... + * + * in1 1 ------ + * 0 ------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ case XTIME__IN0_1__IN1_1__IN0_NOX__IN1_X: /* - * in0 1 ------------ - * 0 - * ...^....^... - * - * in1 1 ------ - * 0 ------ - * ...^....^... - * - * out 1 ------ - * 0 ------ - * ...^....^... - */ + * in0 1 ------------ + * 0 + * ...^....^... + * + * in1 1 ------ + * 0 ------ + * ...^....^... + * + * out 1 ------ + * 0 ------ + * ...^....^... + */ out = 0; x_time = x_time1; break; case XTIME__IN0_0__IN1_0__IN0_X__IN1_X: /* - * in0 1 ----- ------- - * 0 ------- ----- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 -- -- - * 0 ----- ----- ----- ----- - * ...^....^... ...^....^... - */ + * in0 1 ----- ------- + * 0 ------- ----- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 -- -- + * 0 ----- ----- ----- ----- + * ...^....^... ...^....^... + */ case XTIME__IN0_1__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------ -------- - * 0 ------ ---- - * ...^....^... ...^....^... - * - * in1 1 -------- ------ - * 0 ---- ------ - * ...^....^... ...^....^... - * - * out 1 -- -- - * 0 ---- ------ ---- ------ - * ...^....^... ...^....^... - */ + * in0 1 ------ -------- + * 0 ------ ---- + * ...^....^... ...^....^... + * + * in1 1 -------- ------ + * 0 ---- ------ + * ...^....^... ...^....^... + * + * out 1 -- -- + * 0 ---- ------ ---- ------ + * ...^....^... ...^....^... + */ out = 0; /* Not sure if it is better to use 0 - * or the total energy which would smear the switch points together. - * Let's try just using 0 */ + * or the total energy which would smear the switch points together. + * Let's try just using 0 */ // x_time = abs(x_time0 - x_time1); break; case XTIME__IN0_0__IN1_1__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 ----- ----- ----- ----- - * 0 -- -- - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 ----- ----- ----- ----- + * 0 -- -- + * ...^....^... ...^....^... + */ case XTIME__IN0_1__IN1_0__IN0_X__IN1_X: /* - * in0 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * in1 1 ------- ----- - * 0 ----- ------- - * ...^....^... ...^....^... - * - * out 1 ----- ----- ----- ----- - * 0 -- -- - * ...^....^... ...^....^... - */ + * in0 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * in1 1 ------- ----- + * 0 ----- ------- + * ...^....^... ...^....^... + * + * out 1 ----- ----- ----- ----- + * 0 -- -- + * ...^....^... ...^....^... + */ /* Not sure if it is better to use 1 - * or the total energy which would smear the switch points together. - * Let's try just using 1 */ + * or the total energy which would smear the switch points together. + * Let's try just using 1 */ // x_time = 1.0 - abs(x_time0 - x_time1); break; } |