summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/tms5110.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/tms5110.c')
-rw-r--r--src/emu/sound/tms5110.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c
index 2286ca993c4..9b84574ed8a 100644
--- a/src/emu/sound/tms5110.c
+++ b/src/emu/sound/tms5110.c
@@ -763,8 +763,10 @@ void tms5110_PDC_set(tms5110_state *tms, int data)
static void parse_frame(tms5110_state *tms)
{
- int bits, indx, i, rep_flag, ene;
-
+ int bits, indx, i, rep_flag;
+#if (DEBUG_5110)
+ int ene;
+#endif
/* count the total number of bits available */
bits = tms->fifo_count;
@@ -779,7 +781,9 @@ static void parse_frame(tms5110_state *tms)
}
indx = extract_bits(tms,tms->coeff->energy_bits);
tms->new_energy = tms->coeff->energytable[indx];
+#if (DEBUG_5110)
ene = indx;
+#endif
/* if the energy index is 0 or 15, we're done */