Fixed validate warning by reverted caching of ym2203 device (the same tag is used with different device types). (nw)

This commit is contained in:
smf- 2013-05-12 11:28:56 +00:00
parent 8ea6696216
commit 10a80d903b
2 changed files with 3 additions and 4 deletions

View File

@ -470,8 +470,9 @@ READ8_MEMBER(taitol_state::portB_r)
READ8_MEMBER(taitol_state::extport_select_and_ym2203_r)
{
ym2203_device *ym2203 = machine().device<ym2203_device>("ymsnd");
m_extport = (offset >> 1) & 1;
return m_ymsnd->read(space, offset & 1);
return ym2203->read(space, offset & 1);
}
WRITE8_MEMBER(taitol_state::mcu_data_w)

View File

@ -10,8 +10,7 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_audiocpu(*this, "audiocpu"),
m_msm(*this, "msm"),
m_ymsnd(*this, "ymsnd")
m_msm(*this, "msm")
{
}
@ -63,7 +62,6 @@ public:
required_device<cpu_device> m_maincpu;
optional_device<cpu_device> m_audiocpu;
optional_device<msm5205_device> m_msm;
optional_device<ym2203_device> m_ymsnd;
/* memory buffers */
UINT8 m_rambanks[0x1000 * 12];