diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2016-05-20 07:24:06 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2016-05-20 07:24:06 +0200 |
commit | 6711db7107329da894754887ec4ab426945455cb (patch) | |
tree | 659303ba9a1fbd0a244dbe637fa9794f03fe0128 /src/mame/drivers/kingobox.cpp | |
parent | ec1f9b948c496535c89eaa70e65f38ae6ab34f10 (diff) |
More gen_latch (nw)
Diffstat (limited to 'src/mame/drivers/kingobox.cpp')
-rw-r--r-- | src/mame/drivers/kingobox.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mame/drivers/kingobox.cpp b/src/mame/drivers/kingobox.cpp index 6331925216c..3fc9c6f496c 100644 --- a/src/mame/drivers/kingobox.cpp +++ b/src/mame/drivers/kingobox.cpp @@ -12,7 +12,7 @@ ernesto@imagina.com Notes: ----- Main CPU: -- Theres a memory area from 0xf000 to 0xf7ff, which is clearly +- There's a memory area from 0xf000 to 0xf7ff, which is clearly initialized at startup and never used anymore. ***************************************************************************/ @@ -41,7 +41,7 @@ WRITE8_MEMBER(kingofb_state::scroll_interrupt_w) WRITE8_MEMBER(kingofb_state::sound_command_w) { - soundlatch_byte_w(space, 0, data); + m_soundlatch->write(space, 0, data); m_audiocpu->set_input_line_and_vector(0, HOLD_LINE, 0xff); } @@ -496,8 +496,10 @@ static MACHINE_CONFIG_START( kingofb, kingofb_state ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_GENERIC_LATCH_8_ADD("soundlatch") + MCFG_SOUND_ADD("aysnd", AY8910, 1500000) - MCFG_AY8910_PORT_A_READ_CB(READ8(driver_device, soundlatch_byte_r)) + MCFG_AY8910_PORT_A_READ_CB(DEVREAD8("soundlatch", generic_latch_8_device, read)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DAC_ADD("dac") @@ -547,8 +549,10 @@ static MACHINE_CONFIG_START( ringking, kingofb_state ) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") + MCFG_GENERIC_LATCH_8_ADD("soundlatch") + MCFG_SOUND_ADD("aysnd", AY8910, 1500000) - MCFG_AY8910_PORT_A_READ_CB(READ8(driver_device, soundlatch_byte_r)) + MCFG_AY8910_PORT_A_READ_CB(DEVREAD8("soundlatch", generic_latch_8_device, read)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) MCFG_DAC_ADD("dac") |