summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-14 23:25:11 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-11-14 23:25:11 -0500
commita67b39a1de14593768c09b378dfb33fefd04141f (patch)
treedf42674623f21eb920a3fe8b125f821c9515ba55 /src/mame
parent3fde35ac1f465ce1f3e6554db1565b698338b760 (diff)
30test: Fix inputs and sound
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/30test.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/mame/drivers/30test.cpp b/src/mame/drivers/30test.cpp
index 1b82c603616..4a9c4c0f4b3 100644
--- a/src/mame/drivers/30test.cpp
+++ b/src/mame/drivers/30test.cpp
@@ -81,9 +81,7 @@ private:
DECLARE_WRITE8_MEMBER(namco_30test_led_rank_w);
DECLARE_WRITE8_MEMBER(namco_30test_lamps_w);
DECLARE_READ8_MEMBER(namco_30test_mux_r);
- DECLARE_READ8_MEMBER(hc11_mux_r);
DECLARE_WRITE8_MEMBER(hc11_mux_w);
- DECLARE_READ8_MEMBER(hc11_okibank_r);
DECLARE_WRITE8_MEMBER(hc11_okibank_w);
void namco_30test_map(address_map &map);
@@ -130,21 +128,11 @@ READ8_MEMBER(namco_30test_state::namco_30test_mux_r)
return res;
}
-READ8_MEMBER(namco_30test_state::hc11_mux_r)
-{
- return m_mux_data;
-}
-
WRITE8_MEMBER(namco_30test_state::hc11_mux_w)
{
m_mux_data = data;
}
-READ8_MEMBER(namco_30test_state::hc11_okibank_r)
-{
- return m_oki_bank;
-}
-
WRITE8_MEMBER(namco_30test_state::hc11_okibank_w)
{
m_oki_bank = data;
@@ -154,11 +142,6 @@ WRITE8_MEMBER(namco_30test_state::hc11_okibank_w)
void namco_30test_state::namco_30test_map(address_map &map)
{
- map(0x0000, 0x003f).ram(); // internal I/O
- map(0x0040, 0x007f).ram(); // more internal I/O, HC11 change pending
- map(0x007c, 0x007c).rw(FUNC(namco_30test_state::hc11_mux_r), FUNC(namco_30test_state::hc11_mux_w));
- map(0x007e, 0x007e).rw(FUNC(namco_30test_state::hc11_okibank_r), FUNC(namco_30test_state::hc11_okibank_w));
- map(0x0080, 0x037f).ram(); // internal RAM
map(0x0d80, 0x0dbf).ram(); // EEPROM read-back data goes there
map(0x2000, 0x2000).rw(m_oki, FUNC(okim6295_device::read), FUNC(okim6295_device::write));
/* 0x401e-0x401f: time */
@@ -253,6 +236,8 @@ void namco_30test_state::_30test(machine_config &config)
m_maincpu->in_pa_callback().set(FUNC(namco_30test_state::namco_30test_mux_r));
//m_maincpu->in_pd_callback().set_ram();
m_maincpu->in_pe_callback().set_ioport("SYSTEM");
+ m_maincpu->out_pg_callback().set(FUNC(namco_30test_state::hc11_okibank_w));
+ m_maincpu->out_ph_callback().set(FUNC(namco_30test_state::hc11_mux_w));
/* no video hardware */