summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ay8910.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2016-06-18 21:00:08 -0400
committer AJR <ajrhacker@users.noreply.github.com>2016-06-18 21:00:08 -0400
commitf87a5de4468cb7949d52d153491d5cf2aa0daa0f (patch)
treec3fb500b02095d8a029307cbe1547e311581558f /src/devices/sound/ay8910.cpp
parent20906487ce74ba59e7a40c58933d5fc569b04d50 (diff)
Prevent NaN errors by initializing variable in ui::text_layout (nw)
Use osd_printf_verbose instead of popmessage in ay8910 (too annoying even for debug build)
Diffstat (limited to 'src/devices/sound/ay8910.cpp')
-rw-r--r--src/devices/sound/ay8910.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/devices/sound/ay8910.cpp b/src/devices/sound/ay8910.cpp
index cb1e1c98bcb..b1afec02d29 100644
--- a/src/devices/sound/ay8910.cpp
+++ b/src/devices/sound/ay8910.cpp
@@ -603,10 +603,8 @@ void ay8910_device::ay8910_write_reg(int r, int v)
/* No action required */
break;
case AY_ECOARSE:
- #ifdef MAME_DEBUG
if ( (v & 0x0f) > 0)
- popmessage("ECoarse");
- #endif
+ osd_printf_verbose("ECoarse\n");
/* No action required */
break;
case AY_ENABLE:
@@ -628,10 +626,8 @@ void ay8910_device::ay8910_write_reg(int r, int v)
m_last_enable = m_regs[AY_ENABLE];
break;
case AY_ESHAPE:
- #ifdef MAME_DEBUG
if ( (v & 0x0f) > 0)
- popmessage("EShape");
- #endif
+ osd_printf_verbose("EShape\n");
m_attack = (m_regs[AY_ESHAPE] & 0x04) ? m_env_step_mask : 0x00;
if ((m_regs[AY_ESHAPE] & 0x08) == 0)
{