mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
ay8910: add machine().describe_context() to some logerror
This commit is contained in:
parent
905470b653
commit
6c00c8ef02
@ -1001,7 +1001,7 @@ void ay8910_device::ay8910_write_reg(int r, int v)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_mode & 0xf)
|
else if (m_mode & 0xf)
|
||||||
logerror("warning: activated unknown mode %02x at %s\n", m_mode & 0xf, name());
|
logerror("%s: warning: activated unknown mode %02x at %s\n", machine().describe_context(), m_mode & 0xf, name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_envelope[0].set_shape(m_regs[AY_EASHAPE], m_env_step_mask);
|
m_envelope[0].set_shape(m_regs[AY_EASHAPE], m_env_step_mask);
|
||||||
@ -1012,12 +1012,12 @@ void ay8910_device::ay8910_write_reg(int r, int v)
|
|||||||
if (!m_port_a_write_cb.isnull())
|
if (!m_port_a_write_cb.isnull())
|
||||||
m_port_a_write_cb((offs_t)0, m_regs[AY_PORTA]);
|
m_port_a_write_cb((offs_t)0, m_regs[AY_PORTA]);
|
||||||
else
|
else
|
||||||
logerror("warning: unmapped write %02x to %s Port A\n", v, name());
|
logerror("%s: warning: unmapped write %02x to %s Port A\n", machine().describe_context(), v, name());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if LOG_IGNORED_WRITES
|
#if LOG_IGNORED_WRITES
|
||||||
logerror("warning: write %02x to %s Port A set as input - ignored\n", v, name());
|
logerror("%s: warning: write %02x to %s Port A set as input - ignored\n", machine().describe_context(), v, name());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1027,12 +1027,12 @@ void ay8910_device::ay8910_write_reg(int r, int v)
|
|||||||
if (!m_port_b_write_cb.isnull())
|
if (!m_port_b_write_cb.isnull())
|
||||||
m_port_b_write_cb((offs_t)0, m_regs[AY_PORTB]);
|
m_port_b_write_cb((offs_t)0, m_regs[AY_PORTB]);
|
||||||
else
|
else
|
||||||
logerror("warning: unmapped write %02x to %s Port B\n", v, name());
|
logerror("%s: warning: unmapped write %02x to %s Port B\n", machine().describe_context(), v, name());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if LOG_IGNORED_WRITES
|
#if LOG_IGNORED_WRITES
|
||||||
logerror("warning: write %02x to %s Port B set as input - ignored\n", v, name());
|
logerror("%s: warning: write %02x to %s Port B set as input - ignored\n", machine().describe_context(), v, name());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1593,9 +1593,8 @@ ay8910_device::ay8910_device(const machine_config &mconfig, const char *tag, dev
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock,
|
ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, psg_type_t psg_type, int streams, int ioports, int feature) :
|
||||||
psg_type_t psg_type, int streams, int ioports, int feature)
|
device_t(mconfig, type, tag, owner, clock),
|
||||||
: device_t(mconfig, type, tag, owner, clock),
|
|
||||||
device_sound_interface(mconfig, *this),
|
device_sound_interface(mconfig, *this),
|
||||||
m_type(psg_type),
|
m_type(psg_type),
|
||||||
m_streams(streams),
|
m_streams(streams),
|
||||||
|
Loading…
Reference in New Issue
Block a user