dynablstb: Soundlatch modernization (nw)

This commit is contained in:
AJR 2017-08-29 01:09:43 -04:00
parent 0af9923f26
commit 225fae73b4
2 changed files with 4 additions and 11 deletions

View File

@ -58,15 +58,6 @@ WRITE16_MEMBER(m90_state::quizf1_bankswitch_w)
membank("bank1")->set_entry(data & 0xf);
}
WRITE16_MEMBER(m90_state::dynablsb_sound_command_w)
{
if (ACCESSING_BITS_0_7)
{
m_soundlatch->write(space, offset, data);
m_soundcpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
}
}
#ifdef UNUSED_FUNCTION
WRITE16_MEMBER(m90_state::unknown_w)
{
@ -114,7 +105,7 @@ static ADDRESS_MAP_START( m90_main_cpu_io_map, AS_IO, 16, m90_state )
ADDRESS_MAP_END
static ADDRESS_MAP_START( dynablsb_main_cpu_io_map, AS_IO, 16, m90_state )
AM_RANGE(0x00, 0x01) AM_WRITE(dynablsb_sound_command_w)
AM_RANGE(0x00, 0x01) AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0x00ff)
AM_RANGE(0x00, 0x01) AM_READ_PORT("P1_P2")
AM_RANGE(0x02, 0x03) AM_WRITE(m90_coincounter_w)
AM_RANGE(0x02, 0x03) AM_READ_PORT("SYSTEM")
@ -852,6 +843,9 @@ static MACHINE_CONFIG_DERIVED( dynablsb, m90 )
MCFG_DEVICE_REMOVE("m72")
MCFG_DEVICE_MODIFY("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("soundcpu", INPUT_LINE_NMI))
MCFG_SOUND_MODIFY("ymsnd")
MCFG_YM2151_IRQ_HANDLER(NOOP) /* this bootleg polls the YM2151 instead of taking interrupts from it */
MACHINE_CONFIG_END

View File

@ -35,7 +35,6 @@ public:
uint8_t m_last_pf2;
DECLARE_WRITE16_MEMBER(m90_coincounter_w);
DECLARE_WRITE16_MEMBER(quizf1_bankswitch_w);
DECLARE_WRITE16_MEMBER(dynablsb_sound_command_w);
DECLARE_WRITE16_MEMBER(m90_video_control_w);
DECLARE_WRITE16_MEMBER(m90_video_w);
DECLARE_DRIVER_INIT(bomblord);