diff options
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/attotime.h | 10 | ||||
| -rw-r--r-- | src/emu/bus/c64/c128_partner.c | 50 | ||||
| -rw-r--r-- | src/emu/bus/c64/c128_partner.h | 4 | ||||
| -rw-r--r-- | src/emu/bus/msx_cart/fs_sr022.c | 1 | ||||
| -rw-r--r-- | src/emu/cpu/pdp8/pdp8.c | 62 | ||||
| -rw-r--r-- | src/emu/cpu/tms32082/mp_ops.c | 10 | ||||
| -rw-r--r-- | src/emu/cpu/tms32082/tms32082.c | 32 | ||||
| -rw-r--r-- | src/emu/cpu/ucom4/ucom4.c | 4 | ||||
| -rw-r--r-- | src/emu/emuopts.c | 1 | ||||
| -rw-r--r-- | src/emu/machine/i8251.c | 5 | ||||
| -rw-r--r-- | src/emu/machine/i8251.h | 2 | ||||
| -rw-r--r-- | src/emu/machine/tms6100.c | 2 | ||||
| -rw-r--r-- | src/emu/netlist/nl_base.c | 1 | ||||
| -rw-r--r-- | src/emu/netlist/nl_base.h | 4 | ||||
| -rw-r--r-- | src/emu/netlist/plib/pconfig.h | 2 | ||||
| -rw-r--r-- | src/emu/netlist/plib/pstream.c | 1 | ||||
| -rw-r--r-- | src/emu/netlist/plib/pstring.c | 1 | ||||
| -rw-r--r-- | src/emu/netlist/plib/pstring.h | 14 | ||||
| -rw-r--r-- | src/emu/netlist/prg/nltool.c | 8 | ||||
| -rw-r--r-- | src/emu/netlist/prg/nlwav.c | 2 | ||||
| -rw-r--r-- | src/emu/netlist/solver/nld_ms_direct.h | 2 | ||||
| -rw-r--r-- | src/emu/netlist/solver/nld_ms_direct_lu.h | 5 | ||||
| -rw-r--r-- | src/emu/screen.h | 4 | ||||
| -rw-r--r-- | src/emu/sound/rf5c400.c | 6 | ||||
| -rw-r--r-- | src/emu/sound/tms5110.c | 30 |
25 files changed, 128 insertions, 135 deletions
diff --git a/src/emu/attotime.h b/src/emu/attotime.h index 845bcb365b2..0cdaa424ca0 100644 --- a/src/emu/attotime.h +++ b/src/emu/attotime.h @@ -121,11 +121,11 @@ public: void normalize() { - while (m_attoseconds >= ATTOSECONDS_PER_SECOND) - { - m_seconds++; - m_attoseconds -= ATTOSECONDS_PER_SECOND; - } + while (m_attoseconds >= ATTOSECONDS_PER_SECOND) + { + m_seconds++; + m_attoseconds -= ATTOSECONDS_PER_SECOND; + } } attoseconds_t attoseconds() const { return m_attoseconds; } diff --git a/src/emu/bus/c64/c128_partner.c b/src/emu/bus/c64/c128_partner.c index e9a0e922007..00f5a8e2cb9 100644 --- a/src/emu/bus/c64/c128_partner.c +++ b/src/emu/bus/c64/c128_partner.c @@ -2,29 +2,29 @@ // copyright-holders:Curt Coder /********************************************************************** - Timeworks PARTNER 128 cartridge emulation + Timeworks PARTNER 128 cartridge emulation **********************************************************************/ /* - PCB Layout - ---------- + PCB Layout + ---------- - |---------------| - |LS74 SW * | - |LS09 LS273| - |LS139 RAM | - |LS133 | - | LS240 | - |LS33 ROM | - |LS09 | - ||||||||||||||| + |---------------| + |LS74 SW * | + |LS09 LS273| + |LS139 RAM | + |LS133 | + | LS240 | + |LS33 ROM | + |LS09 | + ||||||||||||||| - ROM - Toshiba TMM24128AP 16Kx8 EPROM (blank label) - RAM - Sony CXK5864PN-15L 8Kx8 SRAM - SW - push button switch - * - solder point for joystick port dongle + ROM - Toshiba TMM24128AP 16Kx8 EPROM (blank label) + RAM - Sony CXK5864PN-15L 8Kx8 SRAM + SW - push button switch + * - solder point for joystick port dongle */ @@ -193,16 +193,16 @@ void partner128_t::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int { /* - bit description + bit description - 0 RAM A7 - 1 RAM A8 - 2 RAM A9 - 3 RAM A10 - 4 RAM A11 - 5 RAM A12 - 6 LS74 1Cd,2Cd - 7 N/C + 0 RAM A7 + 1 RAM A8 + 2 RAM A9 + 3 RAM A10 + 4 RAM A11 + 5 RAM A12 + 6 LS74 1Cd,2Cd + 7 N/C */ diff --git a/src/emu/bus/c64/c128_partner.h b/src/emu/bus/c64/c128_partner.h index d459af4124d..2210cdc7388 100644 --- a/src/emu/bus/c64/c128_partner.h +++ b/src/emu/bus/c64/c128_partner.h @@ -24,8 +24,8 @@ // ======================> partner128_t class partner128_t : public device_t, - public device_c64_expansion_card_interface - //public device_vcs_control_port_interface + public device_c64_expansion_card_interface + //public device_vcs_control_port_interface { public: // construction/destruction diff --git a/src/emu/bus/msx_cart/fs_sr022.c b/src/emu/bus/msx_cart/fs_sr022.c index 17325f479fd..c3aee7b9b81 100644 --- a/src/emu/bus/msx_cart/fs_sr022.c +++ b/src/emu/bus/msx_cart/fs_sr022.c @@ -69,4 +69,3 @@ WRITE8_MEMBER(msx_cart_fs_sr022::write_cart) break; } } - diff --git a/src/emu/cpu/pdp8/pdp8.c b/src/emu/cpu/pdp8/pdp8.c index dd2fd6fc6b3..d533380b87f 100644 --- a/src/emu/cpu/pdp8/pdp8.c +++ b/src/emu/cpu/pdp8/pdp8.c @@ -12,37 +12,37 @@ CPU_DISASSEMBLE( pdp8 ); -#define OP ((op >> 011) & 07) - -#define MR_IND ((op >> 010) & 01) -#define MR_PAGE ((op >> 07) & 01) -#define MR_ADDR (op & 0177) - -#define IOT_DEVICE ((op >> 03) & 077) -#define IOT_IOP1 (op & 01) -#define IOT_IOP2 ((op >> 01) & 01) -#define IOT_IOP4 ((op >> 02) & 01) - -#define OPR_GROUP ((op >> 010) & 01) -#define OPR_CLA ((op >> 07) & 01) -#define OPR_CLL ((op >> 06) & 01) -#define OPR_CMA ((op >> 05) & 01) -#define OPR_CML ((op >> 04) & 01) -#define OPR_ROR ((op >> 03) & 01) -#define OPR_ROL ((op >> 02) & 01) -#define OPR_ROT2 ((op >> 01) & 01) -#define OPR_IAC (op & 01) - -#define OPR_SMA OPR_CLL -#define OPR_SZA OPR_CMA -#define OPR_SNL OPR_CML -#define OPR_REVSKIP OPR_ROR -#define OPR_OSR OPR_ROL -#define OPR_HLT OPR_ROT2 - -#define OPR_GROUP_MASK 0401 -#define OPR_GROUP1_VAL 0000 -#define OPR_GROUP2_VAL 0400 +#define OP ((op >> 011) & 07) + +#define MR_IND ((op >> 010) & 01) +#define MR_PAGE ((op >> 07) & 01) +#define MR_ADDR (op & 0177) + +#define IOT_DEVICE ((op >> 03) & 077) +#define IOT_IOP1 (op & 01) +#define IOT_IOP2 ((op >> 01) & 01) +#define IOT_IOP4 ((op >> 02) & 01) + +#define OPR_GROUP ((op >> 010) & 01) +#define OPR_CLA ((op >> 07) & 01) +#define OPR_CLL ((op >> 06) & 01) +#define OPR_CMA ((op >> 05) & 01) +#define OPR_CML ((op >> 04) & 01) +#define OPR_ROR ((op >> 03) & 01) +#define OPR_ROL ((op >> 02) & 01) +#define OPR_ROT2 ((op >> 01) & 01) +#define OPR_IAC (op & 01) + +#define OPR_SMA OPR_CLL +#define OPR_SZA OPR_CMA +#define OPR_SNL OPR_CML +#define OPR_REVSKIP OPR_ROR +#define OPR_OSR OPR_ROL +#define OPR_HLT OPR_ROT2 + +#define OPR_GROUP_MASK 0401 +#define OPR_GROUP1_VAL 0000 +#define OPR_GROUP2_VAL 0400 const device_type PDP8CPU = &device_creator<pdp8_device>; diff --git a/src/emu/cpu/tms32082/mp_ops.c b/src/emu/cpu/tms32082/mp_ops.c index c6e9321ce24..79c0b401392 100644 --- a/src/emu/cpu/tms32082/mp_ops.c +++ b/src/emu/cpu/tms32082/mp_ops.c @@ -465,7 +465,7 @@ void tms32082_mp_device::execute_short_imm() break; } - case 0x12: // and.tf + case 0x12: // and.tf { int rd = OP_RD(); int rs = OP_RS(); @@ -692,7 +692,7 @@ void tms32082_mp_device::execute_short_imm() break; } - case 0x45: // jsr.a + case 0x45: // jsr.a { int link = OP_LINK(); int base = OP_BASE(); @@ -929,12 +929,12 @@ void tms32082_mp_device::execute_reg_long_imm() UINT32 compmask = endmask & shiftmask; UINT32 res = 0; - if (r) // right + if (r) // right { res = ROTATE_R(source, rot) & compmask; res = SIGN_EXTEND(res, rot); } - else // left + else // left { res = ROTATE_L(source, rot) & compmask; } @@ -1022,7 +1022,7 @@ void tms32082_mp_device::execute_reg_long_imm() } case 0x3a: - case 0x3b: // or.ft + case 0x3b: // or.ft { int rd = OP_RD(); int rs = OP_RS(); diff --git a/src/emu/cpu/tms32082/tms32082.c b/src/emu/cpu/tms32082/tms32082.c index 8b3d041ba4f..6ce5a2e2c80 100644 --- a/src/emu/cpu/tms32082/tms32082.c +++ b/src/emu/cpu/tms32082/tms32082.c @@ -298,24 +298,24 @@ void tms32082_mp_device::processor_command(UINT32 command) for (int i=0; i < num; i++) { - printf("Entry %d:\n", i); - for (int k=0; k < 6; k++) - { - for (int l=0; l < 4; l++) - { - UINT32 dd = m_program->read_dword(ra); - ra += 4; - - printf("%08X(%f) ", dd, u2f(dd)); - } - printf("\n"); - } - printf("\n"); + printf("Entry %d:\n", i); + for (int k=0; k < 6; k++) + { + for (int l=0; l < 4; l++) + { + UINT32 dd = m_program->read_dword(ra); + ra += 4; + + printf("%08X(%f) ", dd, u2f(dd)); + } + printf("\n"); + } + printf("\n"); } */ UINT32 ra = 0x1000280; - + int oldnum = m_program->read_dword(0x600ffffc); UINT32 rb = 0x60000000 + (oldnum * 0x60); @@ -367,7 +367,7 @@ UINT32 tms32082_mp_device::read_creg(int reg) case 0xa: // PPERROR return 0xe0000; - case 0xe: // TCOUNT + case 0xe: // TCOUNT return m_tcount; case 0x4000: // IN0P @@ -413,7 +413,7 @@ void tms32082_mp_device::write_creg(int reg, UINT32 data) printf("IE = %08X\n", data); break; - case 0xe: // TCOUNT + case 0xe: // TCOUNT m_tcount = data; break; diff --git a/src/emu/cpu/ucom4/ucom4.c b/src/emu/cpu/ucom4/ucom4.c index 1d3da737b77..0c6bd280358 100644 --- a/src/emu/cpu/ucom4/ucom4.c +++ b/src/emu/cpu/ucom4/ucom4.c @@ -268,12 +268,12 @@ void ucom4_cpu_device::output_w(int index, UINT8 data) UINT8 upd557l_cpu_device::input_r(int index) { index &= 0xf; - + if (index == NEC_UCOM4_PORTB) logerror("%s read from unknown port %c at $%03X\n", tag(), 'A' + index, m_prev_pc); else return ucom4_cpu_device::input_r(index); - + return 0; } diff --git a/src/emu/emuopts.c b/src/emu/emuopts.c index ad955994899..be8efdd3a8c 100644 --- a/src/emu/emuopts.c +++ b/src/emu/emuopts.c @@ -595,4 +595,3 @@ void emu_options::update_cached_options() m_sleep = bool_value(OPTION_SLEEP); m_refresh_speed = bool_value(OPTION_REFRESHSPEED); } - diff --git a/src/emu/machine/i8251.c b/src/emu/machine/i8251.c index e37da9fcb6b..7008fe394a3 100644 --- a/src/emu/machine/i8251.c +++ b/src/emu/machine/i8251.c @@ -692,7 +692,7 @@ WRITE8_MEMBER(i8251_device::data_w) { m_tx_data = data; - LOG(("data_w %02x\n" , data)); + LOG(("data_w %02x\n" , data)); // printf("i8251 transmit char: %02x\n",data); /* writing clears */ @@ -714,7 +714,6 @@ WRITE8_MEMBER(i8251_device::data_w) void i8251_device::receive_character(UINT8 ch) { - m_rx_data = ch; /* char has not been read and another has arrived! */ @@ -735,7 +734,7 @@ void i8251_device::receive_character(UINT8 ch) READ8_MEMBER(i8251_device::data_r) { - LOG(("read data: %02x, STATUS=%02x\n",m_rx_data,m_status)); + LOG(("read data: %02x, STATUS=%02x\n",m_rx_data,m_status)); /* reading clears */ m_status &= ~I8251_STATUS_RX_READY; diff --git a/src/emu/machine/i8251.h b/src/emu/machine/i8251.h index e2d271a31c3..2825faf1ed1 100644 --- a/src/emu/machine/i8251.h +++ b/src/emu/machine/i8251.h @@ -133,7 +133,7 @@ private: /* data being received */ UINT8 m_rx_data; - UINT8 m_tx_data; + UINT8 m_tx_data; bool m_tx_busy; bool m_disable_tx_pending; }; diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c index 6c5a58673dd..7d0f3226ca5 100644 --- a/src/emu/machine/tms6100.c +++ b/src/emu/machine/tms6100.c @@ -211,7 +211,7 @@ WRITE_LINE_MEMBER(tms6100_device::tms6100_romclock_w) /* read bit at address */ if (m_variant == TMS6110_IS_M58819) { - m_data = (m_rom[m_address >> 3] >> (7-(m_address & 0x07))) & 1; + m_data = (m_rom[m_address >> 3] >> (7-(m_address & 0x07))) & 1; } else // m_variant == (TMS6110_IS_TMS6100 || TMS6110_IS_TMS6125) { diff --git a/src/emu/netlist/nl_base.c b/src/emu/netlist/nl_base.c index 31fc8983d6c..6c1dab54289 100644 --- a/src/emu/netlist/nl_base.c +++ b/src/emu/netlist/nl_base.c @@ -19,7 +19,6 @@ const netlist::netlist_time netlist::netlist_time::zero = netlist::netlist_time: namespace netlist { - // ---------------------------------------------------------------------------------------- // logic_family_ttl_t // ---------------------------------------------------------------------------------------- diff --git a/src/emu/netlist/nl_base.h b/src/emu/netlist/nl_base.h index 9e4b90df9ba..fff31602e6a 100644 --- a/src/emu/netlist/nl_base.h +++ b/src/emu/netlist/nl_base.h @@ -1238,7 +1238,7 @@ namespace netlist protected: // any derived netlist must override vlog inherited from plog_base - // virtual void vlog(const plog_level &l, const pstring &ls) = 0; + // virtual void vlog(const plog_level &l, const pstring &ls) = 0; /* from netlist_object */ virtual void reset(); @@ -1256,7 +1256,7 @@ namespace netlist netlist_time m_time; bool m_use_deactivate; - queue_t m_queue; + queue_t m_queue; devices::NETLIB_NAME(mainclock) * m_mainclock; diff --git a/src/emu/netlist/plib/pconfig.h b/src/emu/netlist/plib/pconfig.h index cb7c7111cd2..cfa622c9118 100644 --- a/src/emu/netlist/plib/pconfig.h +++ b/src/emu/netlist/plib/pconfig.h @@ -101,7 +101,7 @@ typedef __int128_t INT128; #define ATTR_HOT __attribute__((hot)) #define ATTR_COLD __attribute__((cold)) -#define RESTRICT __restrict__ +#define RESTRICT __restrict__ #define EXPECTED(x) (x) #define UNEXPECTED(x) (x) #define ATTR_PRINTF(x,y) __attribute__((format(printf, x, y))) diff --git a/src/emu/netlist/plib/pstream.c b/src/emu/netlist/plib/pstream.c index 07ef55730da..ae2f5b580a1 100644 --- a/src/emu/netlist/plib/pstream.c +++ b/src/emu/netlist/plib/pstream.c @@ -264,4 +264,3 @@ pstream::pos_type pomemstream::vtell() { return m_pos; } - diff --git a/src/emu/netlist/plib/pstring.c b/src/emu/netlist/plib/pstring.c index 00f075d299d..46346f637db 100644 --- a/src/emu/netlist/plib/pstring.c +++ b/src/emu/netlist/plib/pstring.c @@ -600,4 +600,3 @@ void pfmt::format_element(const char *f, const char *l, const char *fmt_spec, . template struct pstring_t<pu8_traits>; template struct pstring_t<putf8_traits>; - diff --git a/src/emu/netlist/plib/pstring.h b/src/emu/netlist/plib/pstring.h index ecd4dd4907e..9cc67327838 100644 --- a/src/emu/netlist/plib/pstring.h +++ b/src/emu/netlist/plib/pstring.h @@ -241,7 +241,7 @@ struct putf8_traits return 2; else if (c < 0x10000) return 3; - else /* U+10000 U+1FFFFF */ + else /* U+10000 U+1FFFFF */ return 4; /* no checks */ } static code_t code(const mem_t *p) @@ -276,7 +276,7 @@ struct putf8_traits m[1] = 0x80 | ((c>>6) & 0x3f); m[2] = 0x80 | (c & 0x3f); } - else /* U+10000 U+1FFFFF */ + else /* U+10000 U+1FFFFF */ { m[0] = 0xF0 | (c >> 18); m[1] = 0x80 | ((c>>12) & 0x3f); @@ -622,11 +622,11 @@ public: plog_base(plog_dispatch_intf *proxy) : debug(proxy), - info(proxy), - verbose(proxy), - warning(proxy), - error(proxy), - fatal(proxy) + info(proxy), + verbose(proxy), + warning(proxy), + error(proxy), + fatal(proxy) {} virtual ~plog_base() {}; diff --git a/src/emu/netlist/prg/nltool.c b/src/emu/netlist/prg/nltool.c index 9568ff0bfc0..1951ec7468f 100644 --- a/src/emu/netlist/prg/nltool.c +++ b/src/emu/netlist/prg/nltool.c @@ -30,7 +30,7 @@ #include <ctime> -#define osd_ticks_t clock_t +#define osd_ticks_t clock_t inline osd_ticks_t osd_ticks_per_second() { return CLOCKS_PER_SEC; } @@ -98,12 +98,12 @@ class tool_options_t : public poptions public: tool_options_t() : poptions(), - opt_ttr ("t", "time_to_run", 1.0, "time to run the emulation (seconds)", this), + opt_ttr ("t", "time_to_run", 1.0, "time to run the emulation (seconds)", this), opt_name("n", "name", "", "netlist in file to run; default is first one", this), opt_logs("l", "logs", "", "colon separated list of terminals to log", this), opt_file("f", "file", "-", "file to process (default is stdin)", this), opt_type("y", "type", "spice", "spice:eagle", "type of file to be converted: spice,eagle", this), - opt_cmd ("c", "cmd", "run", "run|convert|listdevices", this), + opt_cmd ("c", "cmd", "run", "run|convert|listdevices", this), opt_inp( "i", "input", "", "input file to process (default is none)", this), opt_verb("v", "verbose", "be verbose - this produces lots of output", this), opt_quiet("q", "quiet", "be quiet - no warnings", this), @@ -113,7 +113,7 @@ public: poption_double opt_ttr; poption_str opt_name; poption_str opt_logs; - poption_str opt_file; + poption_str opt_file; poption_str_limit opt_type; poption_str opt_cmd; poption_str opt_inp; diff --git a/src/emu/netlist/prg/nlwav.c b/src/emu/netlist/prg/nlwav.c index 8f9c57c7ac5..681b0e6d79e 100644 --- a/src/emu/netlist/prg/nlwav.c +++ b/src/emu/netlist/prg/nlwav.c @@ -49,7 +49,7 @@ class wav_t public: wav_t(postream &strm, unsigned sr) : m_f(strm) { -// m_f = strm; +// m_f = strm; initialize(sr); m_f.write(&m_fh, sizeof(m_fh)); m_f.write(&m_fmt, sizeof(m_fmt)); diff --git a/src/emu/netlist/solver/nld_ms_direct.h b/src/emu/netlist/solver/nld_ms_direct.h index d05480b2715..9116f92d53f 100644 --- a/src/emu/netlist/solver/nld_ms_direct.h +++ b/src/emu/netlist/solver/nld_ms_direct.h @@ -488,7 +488,7 @@ ATTR_HOT void matrix_solver_direct_t<m_N, _storage_N>::LE_back_subst_full( // ii=-1 //for (int i=0; i < kN; i++) - // x[i] = m_RHS[i]; + // x[i] = m_RHS[i]; for (int i=0; i < kN; i++) { diff --git a/src/emu/netlist/solver/nld_ms_direct_lu.h b/src/emu/netlist/solver/nld_ms_direct_lu.h index 633e135cbe4..5d7587c0ef1 100644 --- a/src/emu/netlist/solver/nld_ms_direct_lu.h +++ b/src/emu/netlist/solver/nld_ms_direct_lu.h @@ -429,7 +429,6 @@ ATTR_HOT void matrix_solver_direct_t<m_N, _storage_N>::build_LE_RHS(nl_double * template <unsigned m_N, unsigned _storage_N> ATTR_HOT void matrix_solver_direct_t<m_N, _storage_N>::LE_solve() { - const unsigned kN = N(); ATTR_UNUSED int imax; @@ -501,7 +500,7 @@ ATTR_HOT void matrix_solver_direct_t<m_N, _storage_N>::LE_solve() indx[j]=imax; #endif //if (m_A[j][j] == 0.0) - // m_A[j][j] = 1e-20; + // m_A[j][j] = 1e-20; double dum = 1.0 / A(j,j); for (int i = j+1; i < kN; i++) A(i,j) *= dum; @@ -521,7 +520,7 @@ ATTR_HOT void matrix_solver_direct_t<m_N, _storage_N>::LE_back_subst( // ii=-1 //for (int i=0; i < kN; i++) - // x[i] = m_RHS[i]; + // x[i] = m_RHS[i]; for (int i=0; i < kN; i++) { diff --git a/src/emu/screen.h b/src/emu/screen.h index 29eff3465df..f3aab539cce 100644 --- a/src/emu/screen.h +++ b/src/emu/screen.h @@ -287,8 +287,8 @@ private: INT32 m_last_partial_scan; // scanline of last partial update bitmap_argb32 m_screen_overlay_bitmap; // screen overlay bitmap UINT32 m_unique_id; // unique id for this screen_device - rgb_t m_color; // render color - UINT8 m_brightness; // global brightness + rgb_t m_color; // render color + UINT8 m_brightness; // global brightness // screen timing attoseconds_t m_frame_period; // attoseconds per frame diff --git a/src/emu/sound/rf5c400.c b/src/emu/sound/rf5c400.c index 730c6240056..2e3b823c013 100644 --- a/src/emu/sound/rf5c400.c +++ b/src/emu/sound/rf5c400.c @@ -413,16 +413,16 @@ WRITE16_MEMBER( rf5c400_device::rf5c400_w ) case 0x08: // relative to env attack (channel no) case 0x09: // relative to env attack (0x0c00/ 0x1c00) - case 0x11: // ? counter for 0x13? + case 0x11: // ? counter for 0x13? { break; } - case 0x13: // ? bujutsu writes sample data here + case 0x13: // ? bujutsu writes sample data here { break; } - case 0x14: // ? related to 0x11/0x13 ? + case 0x14: // ? related to 0x11/0x13 ? break; case 0x21: // reverb(character).w diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c index d77fffa2759..227e0108f35 100644 --- a/src/emu/sound/tms5110.c +++ b/src/emu/sound/tms5110.c @@ -998,26 +998,26 @@ void tms5110_device::parse_frame() fprintf(stderr," "); #endif - /* if the energy index is 0 or 15, we're done + /* if the energy index is 0 or 15, we're done if ((indx == 0) || (indx == 15)) { - if (DEBUG_5110) logerror(" (4-bit energy=%d frame)\n",m_new_energy); + if (DEBUG_5110) logerror(" (4-bit energy=%d frame)\n",m_new_energy); - // clear the k's - if (indx == 0) - { - for (i = 0; i < m_coeff->num_k; i++) - m_new_k[i] = 0; - } + // clear the k's + if (indx == 0) + { + for (i = 0; i < m_coeff->num_k; i++) + m_new_k[i] = 0; + } - // clear fifo if stop frame encountered - if (indx == 15) - { - if (DEBUG_5110) logerror(" (4-bit energy=%d STOP frame)\n",m_new_energy); - m_fifo_head = m_fifo_tail = m_fifo_count = 0; - } - return; + // clear fifo if stop frame encountered + if (indx == 15) + { + if (DEBUG_5110) logerror(" (4-bit energy=%d STOP frame)\n",m_new_energy); + m_fifo_head = m_fifo_tail = m_fifo_count = 0; + } + return; }*/ // if the energy index is 0 or 15, we're done if ((m_new_frame_energy_idx == 0) || (m_new_frame_energy_idx == 15)) |
