diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-01-18 13:56:33 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-01-18 13:56:33 -0500 |
commit | 81072d6f82cc24b37190bf6aa244d50d19853baf (patch) | |
tree | 34214c71641a0ad31b1f90c1911457f5ffa23df3 | |
parent | 879470fc1b3df18996d58436f9f580318d52e2ec (diff) |
amerihok: Slow down ADPCM chip to a much more reasonable speed
z8: Fix TOUT output (nw)
-rw-r--r-- | src/devices/cpu/z8/z8.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/amerihok.cpp | 17 |
2 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/cpu/z8/z8.cpp b/src/devices/cpu/z8/z8.cpp index 9e4ff7decbc..dcebe8d5767 100644 --- a/src/devices/cpu/z8/z8.cpp +++ b/src/devices/cpu/z8/z8.cpp @@ -440,7 +440,7 @@ void z8_device::p3_update_output() uint8_t output = m_output[3] & 0xf0; if ((m_tmr & Z8_TMR_TOUT_MASK) != Z8_TMR_TOUT_OFF) - output = (output & ~Z8_P3_TOUT) | (output ? Z8_P3_TOUT : 0); + output = (output & ~Z8_P3_TOUT) | (m_tout ? Z8_P3_TOUT : 0); if ((m_p3m & Z8_P3M_P3_SERIAL) != 0) output = (output & ~Z8_P3_SOUT) | ((m_transmit_sr == 0 || BIT(m_transmit_sr, 0)) ? Z8_P3_SOUT : 0); diff --git a/src/mame/drivers/amerihok.cpp b/src/mame/drivers/amerihok.cpp index 369f0bf885f..c4e0da17d90 100644 --- a/src/mame/drivers/amerihok.cpp +++ b/src/mame/drivers/amerihok.cpp @@ -78,19 +78,18 @@ void amerihok_state::machine_reset() } -MACHINE_CONFIG_START(amerihok_state::amerihok) - - /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z8681, 12_MHz_XTAL) - MCFG_DEVICE_PROGRAM_MAP(amerihok_map) - MCFG_DEVICE_DATA_MAP(amerihok_data_map) +void amerihok_state::amerihok(machine_config &config) +{ + Z8681(config, m_maincpu, 12_MHz_XTAL); + m_maincpu->set_addrmap(AS_PROGRAM, &amerihok_state::amerihok_map); + m_maincpu->set_addrmap(AS_DATA, &amerihok_state::amerihok_data_map); /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("oki", OKIM6376, 1000000) // 64-pin QFP (probably actually MSM6650) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) -MACHINE_CONFIG_END + OKIM6376(config, m_oki, 12_MHz_XTAL / 96); // 64-pin QFP, type/clock unverified (probably clocked by Z8681 TOUT) + m_oki->add_route(ALL_OUTPUTS, "mono", 1.0); +} |