diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2017-10-08 10:17:20 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2017-10-08 10:17:20 -0400 |
commit | b5c1fcb2eb64bf3b14564f8471538224239cd2f1 (patch) | |
tree | 8dec53d414f2542319a15ce3bc3f928cf720674b /src/mame/drivers | |
parent | cca1591a1260a060a9c4b4b684c5565c38578629 (diff) |
notechan: Probable 6295 banking bit (nw)
Diffstat (limited to 'src/mame/drivers')
-rw-r--r-- | src/mame/drivers/notechan.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mame/drivers/notechan.cpp b/src/mame/drivers/notechan.cpp index 1ad3f62edb3..d7c37fcecad 100644 --- a/src/mame/drivers/notechan.cpp +++ b/src/mame/drivers/notechan.cpp @@ -175,9 +175,11 @@ class notechan_state : public driver_device public: notechan_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu") { } + m_maincpu(*this, "maincpu"), + m_oki(*this, "oki") { } required_device<cpu_device> m_maincpu; + required_device<okim6295_device> m_oki; DECLARE_WRITE8_MEMBER(out_f8_w); DECLARE_WRITE8_MEMBER(out_f9_w); @@ -240,6 +242,8 @@ WRITE8_MEMBER(notechan_state::out_f9_w) WRITE8_MEMBER(notechan_state::out_fa_w) { + m_oki->set_rom_bank(BIT(data, 5)); + output().set_lamp_value(16, data & 1 ); output().set_lamp_value(17, data >> 1 & 1); output().set_lamp_value(18, data >> 2 & 1); |