gen_latch.cpp : Remove unnecessary arguments in handlers (#4623)

* gen_latch.cpp : Remove unnecessary arguments in acknowledge related handlers

* gen_latch.cpp : Remove unnecessary handlers in 16 bit read/write handlers

* gen_latch.cpp : Remove unnecessary arguments in 8 bit handlers
This commit is contained in:
cam900 2019-03-30 08:43:35 +09:00 committed by ajrhacker
parent a81a5dac63
commit 92b6d20440
185 changed files with 365 additions and 376 deletions

View File

@ -2,7 +2,7 @@
// copyright-holders:Miodrag Milanovic
/***************************************************************************
Generic 8bit and 16 bit latch devices
Generic 8 bit and 16 bit latch devices
***************************************************************************/
@ -89,14 +89,14 @@ void generic_latch_base_device::set_latch_written(bool latch_written)
}
}
READ8_MEMBER(generic_latch_base_device::acknowledge_r)
u8 generic_latch_base_device::acknowledge_r(address_space &space)
{
if (!machine().side_effects_disabled())
set_latch_written(false);
return space.unmap();
}
WRITE8_MEMBER(generic_latch_base_device::acknowledge_w)
void generic_latch_base_device::acknowledge_w(u8 data)
{
set_latch_written(false);
}
@ -111,24 +111,24 @@ generic_latch_8_device::generic_latch_8_device(const machine_config &mconfig, co
{
}
READ8_MEMBER( generic_latch_8_device::read )
u8 generic_latch_8_device::read()
{
if (!has_separate_acknowledge() && !machine().side_effects_disabled())
set_latch_written(false);
return m_latched_value;
}
WRITE8_MEMBER( generic_latch_8_device::write )
void generic_latch_8_device::write(u8 data)
{
machine().scheduler().synchronize(timer_expired_delegate(FUNC(generic_latch_8_device::sync_callback), this), data);
}
WRITE8_MEMBER( generic_latch_8_device::preset_w )
void generic_latch_8_device::preset_w(u8 data)
{
m_latched_value = 0xff;
m_latched_value = data;
}
WRITE8_MEMBER( generic_latch_8_device::clear_w )
void generic_latch_8_device::clear_w(u8 data)
{
m_latched_value = 0x00;
}
@ -182,24 +182,24 @@ generic_latch_16_device::generic_latch_16_device(const machine_config &mconfig,
{
}
READ16_MEMBER( generic_latch_16_device::read )
u16 generic_latch_16_device::read()
{
if (!has_separate_acknowledge() && !machine().side_effects_disabled())
set_latch_written(false);
return m_latched_value;
}
WRITE16_MEMBER( generic_latch_16_device::write )
void generic_latch_16_device::write(u16 data)
{
machine().scheduler().synchronize(timer_expired_delegate(FUNC(generic_latch_16_device::sync_callback), this), data);
}
WRITE16_MEMBER( generic_latch_16_device::preset_w )
void generic_latch_16_device::preset_w(u16 data)
{
m_latched_value = 0xffff;
m_latched_value = data;
}
WRITE16_MEMBER( generic_latch_16_device::clear_w )
void generic_latch_16_device::clear_w(u16 data)
{
m_latched_value = 0x0000;
}

View File

@ -2,7 +2,7 @@
// copyright-holders:Miodrag Milanovic
/***************************************************************************
Generic 8bit and 16 bit latch devices
Generic 8 bit and 16 bit latch devices
***************************************************************************/
@ -36,8 +36,8 @@ public:
DECLARE_READ_LINE_MEMBER(pending_r);
DECLARE_READ8_MEMBER( acknowledge_r );
DECLARE_WRITE8_MEMBER( acknowledge_w );
u8 acknowledge_r(address_space &space);
void acknowledge_w(u8 data = 0);
protected:
// construction/destruction
@ -67,16 +67,14 @@ public:
// construction/destruction
generic_latch_8_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );
u8 read();
void write(u8 data);
DECLARE_WRITE8_MEMBER( preset_w );
DECLARE_WRITE8_MEMBER( clear_w );
void preset_w(u8 data = 0xff);
void clear_w(u8 data = 0);
DECLARE_WRITE_LINE_MEMBER( preset );
DECLARE_WRITE_LINE_MEMBER( clear );
void preset_w(u8 value) { m_latched_value = value; }
protected:
virtual void device_start() override;
@ -95,16 +93,14 @@ public:
// construction/destruction
generic_latch_16_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
DECLARE_READ16_MEMBER( read );
DECLARE_WRITE16_MEMBER( write );
u16 read();
void write(u16 data);
DECLARE_WRITE16_MEMBER( preset_w );
DECLARE_WRITE16_MEMBER( clear_w );
void preset_w(u16 data = 0xffff);
void clear_w(u16 data = 0);
DECLARE_WRITE_LINE_MEMBER( preset );
DECLARE_WRITE_LINE_MEMBER( clear );
void preset_w(u16 value) { m_latched_value = value; }
protected:
virtual void device_start() override;

View File

@ -21,7 +21,7 @@ WRITE16_MEMBER(aztarac_state::sound_w)
if (ACCESSING_BITS_0_7)
{
data &= 0xff;
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_sound_status ^= 0x21;
if (m_sound_status & 0x20)
m_audiocpu->set_input_line(0, HOLD_LINE);
@ -32,7 +32,7 @@ READ8_MEMBER(aztarac_state::snd_command_r)
{
m_sound_status |= 0x01;
m_sound_status &= ~0x20;
return m_soundlatch->read(space,offset);
return m_soundlatch->read();
}
READ8_MEMBER(aztarac_state::snd_status_r)

View File

@ -469,7 +469,7 @@ WRITE32_MEMBER( atari_cage_device::cage_to_main_w )
{
if (LOG_COMM)
logerror("%s Data from CAGE = %04X\n", machine().describe_context(), data);
m_soundlatch->write(space, 0, data, mem_mask);
m_soundlatch->write(data);
m_cage_to_cpu_ready = 1;
update_control_lines();
}
@ -489,10 +489,10 @@ READ32_MEMBER( atari_cage_device::cage_io_status_r )
uint16_t atari_cage_device::main_r()
{
if (LOG_COMM)
logerror("%s:main read data = %04X\n", machine().describe_context(), m_soundlatch->read(machine().dummy_space(), 0, 0));
logerror("%s:main read data = %04X\n", machine().describe_context(), m_soundlatch->read());
m_cage_to_cpu_ready = 0;
update_control_lines();
return m_soundlatch->read(machine().dummy_space(), 0, 0xffff);
return m_soundlatch->read();
}

View File

@ -41,13 +41,13 @@ READ8_MEMBER(cchasm_state::soundlatch2_r)
{
m_sound_flags &= ~0x80;
m_ctc->trg2(0);
return m_soundlatch2->read(space, offset);
return m_soundlatch2->read();
}
WRITE8_MEMBER(cchasm_state::soundlatch4_w)
{
m_sound_flags |= 0x40;
m_soundlatch4->write(space, offset, data);
m_soundlatch4->write(data);
m_maincpu->set_input_line(1, HOLD_LINE);
}
@ -61,11 +61,11 @@ WRITE16_MEMBER(cchasm_state::io_w)
switch (offset & 0xf)
{
case 0:
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
break;
case 1:
m_sound_flags |= 0x80;
m_soundlatch2->write(space, offset, data);
m_soundlatch2->write(data);
m_ctc->trg2(1);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
break;
@ -81,10 +81,10 @@ READ16_MEMBER(cchasm_state::io_r)
switch (offset & 0xf)
{
case 0x0:
return m_soundlatch3->read(space, offset) << 8;
return m_soundlatch3->read() << 8;
case 0x1:
m_sound_flags &= ~0x40;
return m_soundlatch4->read(space,offset) << 8;
return m_soundlatch4->read() << 8;
case 0x2:
return (m_sound_flags| (ioport("IN3")->read() & 0x07) | 0x08) << 8;
case 0x5:

View File

@ -78,7 +78,7 @@ cedar_magnet_sound_device::cedar_magnet_sound_device(const machine_config &mconf
WRITE8_MEMBER(efo_zsu_device::sound_command_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
}

View File

@ -43,7 +43,7 @@ void hyprolyb_adpcm_device::device_reset()
WRITE8_MEMBER( hyprolyb_adpcm_device::write )
{
m_soundlatch2->write(m_audiocpu->space(AS_PROGRAM), offset, data);
m_soundlatch2->write(data);
m_adpcm_ready = 0x80;
}
@ -73,7 +73,7 @@ READ8_MEMBER( hyprolyb_adpcm_device::ready_r )
READ8_MEMBER( hyprolyb_adpcm_device::data_r )
{
m_adpcm_ready = 0x00;
return m_soundlatch2->read(m_audiocpu->space(AS_PROGRAM), offset);
return m_soundlatch2->read();
}
void hyprolyb_adpcm_device::vck_callback( int st )

View File

@ -550,7 +550,7 @@ WRITE8_MEMBER( leland_80186_sound_device::leland_80186_command_lo_w )
{
if (LOG_COMM) logerror("%s:Write sound command latch lo = %02X\n", machine().describe_context(), data);
m_sound_command = (m_sound_command & 0xff00) | data;
m_soundlatch->write(space, offset, m_sound_command);
m_soundlatch->write(m_sound_command);
}
@ -558,7 +558,7 @@ WRITE8_MEMBER( leland_80186_sound_device::leland_80186_command_hi_w )
{
if (LOG_COMM) logerror("%s:Write sound command latch hi = %02X\n", machine().describe_context(), data);
m_sound_command = (m_sound_command & 0x00ff) | (data << 8);
m_soundlatch->write(space, offset, m_sound_command);
m_soundlatch->write(m_sound_command);
}
@ -730,8 +730,8 @@ READ16_MEMBER( leland_80186_sound_device::peripheral_r )
return ((m_clock_active << 1) & 0x7e);
case 1:
if (LOG_COMM) logerror("%s:Read sound command latch = %02X\n", machine().describe_context(), m_soundlatch->read(space, offset));
return m_soundlatch->read(space, offset);
if (LOG_COMM) logerror("%s:Read sound command latch = %02X\n", machine().describe_context(), m_soundlatch->read());
return m_soundlatch->read();
case 2:
if (ACCESSING_BITS_0_7)

View File

@ -25,21 +25,21 @@
#define ACTIVELOW_PORT_BIT(P,A,D) ((P & (~(1 << A))) | ((D ^ 1) << A))
#define ACTIVEHIGH_PORT_BIT(P,A,D) ((P & (~(1 << A))) | (D << A))
#define I8035_T_R(M,N) ((m_soundlatch2->read(M,0) >> (N)) & 1)
#define I8035_T_W_AH(M,N,D) do { m_portT = ACTIVEHIGH_PORT_BIT(m_portT,N,D); m_soundlatch2->write(M, 0, m_portT); } while (0)
#define I8035_T_R(N) ((m_soundlatch2->read() >> (N)) & 1)
#define I8035_T_W_AH(N,D) do { m_portT = ACTIVEHIGH_PORT_BIT(m_portT,N,D); m_soundlatch2->write(m_portT); } while (0)
#define I8035_P1_R(M) (m_soundlatch3->read(M,0))
#define I8035_P2_R(M) (m_soundlatch4->read(M,0))
#define I8035_P1_W(M,D) m_soundlatch3->write(M,0,D)
#define I8035_P1_R() (m_soundlatch3->read())
#define I8035_P2_R() (m_soundlatch4->read())
#define I8035_P1_W(D) m_soundlatch3->write(D)
#if (USE_8039)
#define I8035_P2_W(M,D) do { m_soundlatch4->write(M,0,D); } while (0)
#define I8035_P2_W(D) do { m_soundlatch4->write(D); } while (0)
#else
#define I8035_P2_W(M,D) do { set_ea(((D) & 0x20) ? 0 : 1); m_soundlatch4->write(M,0,D); } while (0)
#define I8035_P2_W(D) do { set_ea(((D) & 0x20) ? 0 : 1); m_soundlatch4->write(D); } while (0)
#endif
#define I8035_P1_W_AH(M,B,D) I8035_P1_W(M,ACTIVEHIGH_PORT_BIT(I8035_P1_R(M),B,(D)))
#define I8035_P2_W_AH(M,B,D) I8035_P2_W(M,ACTIVEHIGH_PORT_BIT(I8035_P2_R(M),B,(D)))
#define I8035_P1_W_AH(B,D) I8035_P1_W(ACTIVEHIGH_PORT_BIT(I8035_P1_R(),B,(D)))
#define I8035_P2_W_AH(B,D) I8035_P2_W(ACTIVEHIGH_PORT_BIT(I8035_P2_R(),B,(D)))
#if OLD_SOUND
@ -446,19 +446,17 @@ void mario_state::sound_start()
void mario_state::sound_reset()
{
address_space &space = m_audiocpu->space(AS_PROGRAM);
#if USE_8039
set_ea(1);
#endif
/* FIXME: convert to latch8 */
m_soundlatch->clear_w(space, 0, 0);
if (m_soundlatch2) m_soundlatch2->clear_w(space, 0, 0);
if (m_soundlatch3) m_soundlatch3->clear_w(space, 0, 0);
if (m_soundlatch4) m_soundlatch4->clear_w(space, 0, 0);
if (m_soundlatch3) I8035_P1_W(space, 0x00); /* Input port */
if (m_soundlatch4) I8035_P2_W(space, 0xff); /* Port is in high impedance state after reset */
m_soundlatch->clear_w();
if (m_soundlatch2) m_soundlatch2->clear_w();
if (m_soundlatch3) m_soundlatch3->clear_w();
if (m_soundlatch4) m_soundlatch4->clear_w();
if (m_soundlatch3) I8035_P1_W(0x00); /* Input port */
if (m_soundlatch4) I8035_P2_W(0xff); /* Port is in high impedance state after reset */
m_last = 0;
}
@ -471,32 +469,32 @@ void mario_state::sound_reset()
READ8_MEMBER(mario_state::mario_sh_p1_r)
{
return I8035_P1_R(space);
return I8035_P1_R();
}
READ8_MEMBER(mario_state::mario_sh_p2_r)
{
return I8035_P2_R(space) & 0xEF; /* Bit 4 connected to GND! */
return I8035_P2_R() & 0xEF; /* Bit 4 connected to GND! */
}
READ_LINE_MEMBER(mario_state::mario_sh_t0_r)
{
return I8035_T_R(machine().dummy_space(), 0);
return I8035_T_R(0);
}
READ_LINE_MEMBER(mario_state::mario_sh_t1_r)
{
return I8035_T_R(machine().dummy_space(), 1);
return I8035_T_R(1);
}
READ8_MEMBER(mario_state::mario_sh_tune_r)
{
uint8_t *SND = memregion("audiocpu")->base();
uint16_t mask = memregion("audiocpu")->bytes()-1;
uint8_t p2 = I8035_P2_R(space);
uint8_t p2 = I8035_P2_R();
if ((p2 >> 7) & 1)
return m_soundlatch->read(space, offset);
return m_soundlatch->read();
else
return (SND[(0x1000 + (p2 & 0x0f) * 256 + offset) & mask]);
}
@ -512,12 +510,12 @@ WRITE8_MEMBER(mario_state::mario_sh_sound_w)
WRITE8_MEMBER(mario_state::mario_sh_p1_w)
{
I8035_P1_W(space, data);
I8035_P1_W(data);
}
WRITE8_MEMBER(mario_state::mario_sh_p2_w)
{
I8035_P2_W(space, data);
I8035_P2_W(data);
}
/****************************************************************
@ -539,7 +537,7 @@ WRITE8_MEMBER(mario_state::masao_sh_irqtrigger_w)
WRITE8_MEMBER(mario_state::mario_sh_tuneselect_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
}
/* Sound 0 and 1 are pulsed !*/
@ -576,22 +574,22 @@ WRITE8_MEMBER(mario_state::mario_sh3_w)
m_audiocpu->set_input_line(0,CLEAR_LINE);
break;
case 1: /* get coin */
I8035_T_W_AH(space, 0,data & 1);
I8035_T_W_AH(0,data & 1);
break;
case 2: /* ice */
I8035_T_W_AH(space, 1, data & 1);
I8035_T_W_AH(1, data & 1);
break;
case 3: /* crab */
I8035_P1_W_AH(space, 0, data & 1);
I8035_P1_W_AH(0, data & 1);
break;
case 4: /* turtle */
I8035_P1_W_AH(space, 1, data & 1);
I8035_P1_W_AH(1, data & 1);
break;
case 5: /* fly */
I8035_P1_W_AH(space, 2, data & 1);
I8035_P1_W_AH(2, data & 1);
break;
case 6: /* coin */
I8035_P1_W_AH(space, 3, data & 1);
I8035_P1_W_AH(3, data & 1);
break;
case 7: /* skid */
#if OLD_SOUND

View File

@ -61,7 +61,7 @@ WRITE8_MEMBER(nichisnd_device::soundbank_w)
WRITE8_MEMBER(nichisnd_device::soundlatch_clear_w)
{
if (!(data & 0x01)) m_soundlatch->clear_w(space, 0, 0);
if (!(data & 0x01)) m_soundlatch->clear_w();
}
@ -139,5 +139,5 @@ void nichisnd_device::device_reset()
// use this to connect to the sound board
WRITE8_MEMBER(nichisnd_device::sound_host_command_w)
{
m_soundlatch->write(space,0,data);
m_soundlatch->write(data);
}

View File

@ -56,7 +56,7 @@ enum
WRITE16_MEMBER( acclaim_rax_device::data_w )
{
m_data_in->write(space, 0, data, 0xffff);
m_data_in->write(data);
m_cpu->set_input_line(ADSP2181_IRQL0, ASSERT_LINE);
machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(5));
}
@ -65,7 +65,7 @@ WRITE16_MEMBER( acclaim_rax_device::data_w )
READ16_MEMBER( acclaim_rax_device::data_r )
{
m_adsp_snd_pf0 = 1;
return m_data_out->read(space, 0);
return m_data_out->read();
}
@ -256,12 +256,12 @@ WRITE16_MEMBER( acclaim_rax_device::rom_bank_w )
READ16_MEMBER( acclaim_rax_device::host_r )
{
m_cpu->set_input_line(ADSP2181_IRQL0, CLEAR_LINE);
return m_data_in->read(space, 0);
return m_data_in->read();
}
WRITE16_MEMBER( acclaim_rax_device::host_w )
{
m_data_out->write(space, 0, data, 0xffff);
m_data_out->write(data);
m_adsp_snd_pf0 = 0;
}

View File

@ -66,7 +66,7 @@ WRITE8_MEMBER(redalert_state::redalert_analog_w)
WRITE8_MEMBER(redalert_state::redalert_audio_command_w)
{
/* the byte is connected to port A of the AY8910 */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
/* D7 is also connected to the NMI input of the CPU -
the NMI is actually toggled by a 74121 (R1=27K, C10=330p) */
@ -142,7 +142,7 @@ void redalert_state::sound_start()
WRITE8_MEMBER(redalert_state::redalert_voice_command_w)
{
m_soundlatch2->write(space, 0, (data & 0x78) >> 3);
m_soundlatch2->write((data & 0x78) >> 3);
m_voicecpu->set_input_line(I8085_RST75_LINE, (~data & 0x80) ? ASSERT_LINE : CLEAR_LINE);
}
@ -246,7 +246,7 @@ void redalert_state::ww3_audio(machine_config &config)
WRITE8_MEMBER(redalert_state::demoneye_audio_command_w)
{
/* the byte is connected to port A of the AY8910 */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -122,7 +122,7 @@ WRITE8_MEMBER(scramble_state::hotshock_sh_irqtrigger_w)
READ8_MEMBER( scramble_state::hotshock_soundlatch_r )
{
m_audiocpu->set_input_line(0, CLEAR_LINE);
return m_soundlatch->read(m_audiocpu->space(AS_PROGRAM),0);
return m_soundlatch->read();
}
void scramble_state::sh_init()

View File

@ -68,8 +68,8 @@ READ8_MEMBER(starwars_state::starwars_main_ready_flag_r)
WRITE8_MEMBER(starwars_state::starwars_soundrst_w)
{
m_soundlatch->acknowledge_w(space, 0, 0);
m_mainlatch->acknowledge_w(space, 0, 0);
m_soundlatch->acknowledge_w();
m_mainlatch->acknowledge_w();
/* reset sound CPU here */
m_audiocpu->pulse_input_line(INPUT_LINE_RESET, attotime::zero);

View File

@ -128,7 +128,7 @@ WRITE8_MEMBER( timeplt_audio_device::filter_w )
WRITE8_MEMBER(timeplt_audio_device::sound_data_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
}

View File

@ -76,7 +76,7 @@ Verification still needed for the other PCBs.
WRITE8_MEMBER(aerofgt_state::karatblzbl_soundlatch_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -44,7 +44,7 @@ WRITE8_MEMBER(aliens_state::aliens_coin_counter_w)
WRITE8_MEMBER(aliens_state::aliens_sh_irqtrigger_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -291,7 +291,7 @@ WRITE8_MEMBER(alpha68k_state::outlatch_w)
//AT
WRITE8_MEMBER(alpha68k_state::tnextspc_soundlatch_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
//ZT

View File

@ -391,12 +391,12 @@ WRITE16_MEMBER(armedf_state::bootleg_io_w)
WRITE16_MEMBER(armedf_state::sound_command_w)
{
if (ACCESSING_BITS_0_7)
m_soundlatch->write(space, 0, ((data & 0x7f) << 1) | 1);
m_soundlatch->write(((data & 0x7f) << 1) | 1);
}
READ8_MEMBER(armedf_state::soundlatch_clear_r)
{
m_soundlatch->clear_w(space, 0, 0);
m_soundlatch->clear_w();
return 0;
}

View File

@ -242,10 +242,10 @@ READ8_MEMBER(atetris_mcu_state::mcu_bus_r)
switch (m_mcu->p2_r() & 0xf0)
{
case 0x40:
return m_soundlatch[1]->read(space, 0);
return m_soundlatch[1]->read();
case 0xf0:
return m_soundlatch[0]->read(space, 0);
return m_soundlatch[0]->read();
default:
return 0xff;
@ -261,8 +261,8 @@ WRITE8_MEMBER(atetris_mcu_state::mcu_p2_w)
WRITE8_MEMBER(atetris_mcu_state::mcu_reg_w)
{
// FIXME: a lot of sound writes seem to get lost this way; why doesn't that hurt?
m_soundlatch[0]->write(space, 0, offset | 0x20);
m_soundlatch[1]->write(space, 0, data);
m_soundlatch[0]->write(offset | 0x20);
m_soundlatch[1]->write(data);
}

View File

@ -244,7 +244,7 @@ void bbusters_state::machine_start()
WRITE8_MEMBER(bbusters_state_base::sound_cpu_w)
{
m_soundlatch[0]->write(space, 0, data&0xff);
m_soundlatch[0]->write(data&0xff);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -109,7 +109,7 @@ READ8_MEMBER(bingoc_state::sound_test_r)
#else
WRITE16_MEMBER(bingoc_state::main_sound_latch_w)
{
m_soundlatch->write(space,0,data&0xff);
m_soundlatch->write(data&0xff);
m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
#endif

View File

@ -108,7 +108,7 @@ WRITE8_MEMBER(bionicc_state::mcu_shared_w)
WRITE8_MEMBER(bionicc_state::out1_w)
{
m_soundlatch->write(space,0,data);
m_soundlatch->write(data);
}
WRITE8_MEMBER(bionicc_state::out3_w)

View File

@ -42,7 +42,7 @@ WRITE8_MEMBER(bking_state::bking_sndnmi_enable_w)
WRITE8_MEMBER(bking_state::bking_soundlatch_w)
{
m_soundlatch->write(space, offset, bitswap<8>(data, 0, 1, 2, 3, 4, 5, 6, 7));
m_soundlatch->write(bitswap<8>(data, 0, 1, 2, 3, 4, 5, 6, 7));
}
WRITE8_MEMBER(bking_state::bking3_addr_l_w)

View File

@ -300,7 +300,7 @@ void bladestl_state::machine_reset()
for (i = 0; i < 4 ; i++)
m_last_track[i] = 0;
m_soundlatch->acknowledge_w(machine().dummy_space(), 0, 0);
m_soundlatch->acknowledge_w();
}
void bladestl_state::bladestl(machine_config &config)

View File

@ -85,7 +85,7 @@ READ8_MEMBER(blueprnt_state::grasspin_sh_dipsw_r)
WRITE8_MEMBER(blueprnt_state::blueprnt_sound_command_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -110,9 +110,9 @@ READ8_MEMBER(bombjack_state::soundlatch_read_and_clear)
{
// An extra flip-flop is used to clear the LS273 after reading it through a LS245
// (this flip-flop is then cleared in sync with the sound CPU clock)
uint8_t res = m_soundlatch->read(space, 0);
uint8_t res = m_soundlatch->read();
if (!machine().side_effects_disabled())
m_soundlatch->clear_w(space, 0, 0);
m_soundlatch->clear_w();
return res;
}

View File

@ -89,7 +89,7 @@ WRITE8_MEMBER(bwing_state::bwp1_ctrl_w)
m_subcpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE); // SNMI
else
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(DECO16_IRQ_LINE, HOLD_LINE); // SNDREQ
}
break;

View File

@ -250,8 +250,8 @@ WRITE8_MEMBER(calorie_state::calorie_flipscreen_w)
READ8_MEMBER(calorie_state::calorie_soundlatch_r)
{
uint8_t latch = m_soundlatch->read(space, 0);
m_soundlatch->clear_w(space, 0, 0);
uint8_t latch = m_soundlatch->read();
m_soundlatch->clear_w();
return latch;
}

View File

@ -198,7 +198,7 @@ WRITE8_MEMBER(capbowl_state::track_reset_w)
WRITE8_MEMBER(capbowl_state::sndcmd_w)
{
m_audiocpu->set_input_line(M6809_IRQ_LINE, HOLD_LINE);
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
}

View File

@ -242,7 +242,7 @@ WRITE16_MEMBER(cave_state::sound_cmd_w)
{
// m_sound_flag[0] = 1;
// m_sound_flag[1] = 1;
m_soundlatch->write(space, offset, data, mem_mask);
m_soundlatch->write(data);
m_maincpu->spin_until_time(attotime::from_usec(50)); // Allow the other cpu to reply
}
@ -250,14 +250,14 @@ WRITE16_MEMBER(cave_state::sound_cmd_w)
READ8_MEMBER(cave_state::soundlatch_lo_r)
{
// m_sound_flag[0] = 0;
return m_soundlatch->read(space, offset, 0x00ff) & 0xff;
return m_soundlatch->read() & 0xff;
}
/* Sound CPU: read the high 8 bits of the 16 bit sound latch */
READ8_MEMBER(cave_state::soundlatch_hi_r)
{
// m_sound_flag[1] = 0;
return m_soundlatch->read(space, offset, 0xff00) >> 8;
return m_soundlatch->read() >> 8;
}
/* Main CPU: read the latch written by the sound CPU (acknowledge) */

View File

@ -64,7 +64,7 @@ WRITE16_MEMBER(cbuster_state::twocrude_control_w)
return;
case 2: /* Sound CPU write */
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
return;
case 4: /* Protection, maybe this is a PAL on the board?

View File

@ -255,7 +255,7 @@ void cclimber_state::machine_start()
WRITE8_MEMBER(cclimber_state::swimmer_sh_soundlatch_w)
{
m_soundlatch->write(space,offset,data);
m_soundlatch->write(data);
m_audiocpu->set_input_line_and_vector(0, HOLD_LINE, 0xff);
}

View File

@ -186,7 +186,7 @@ WRITE8_MEMBER(chinagat_state::interrupt_w)
switch (offset)
{
case 0: /* 3e00 - SND irq */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
break;
case 1: /* 3e01 - NMI ack */

View File

@ -512,7 +512,7 @@ WRITE8_MEMBER(cntsteer_state::gekitsui_sub_irq_ack)
WRITE8_MEMBER(cntsteer_state::cntsteer_sound_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -202,7 +202,7 @@ WRITE8_MEMBER(combatsc_state::combatscb_io_w)
switch (offset)
{
case 0x400: combatscb_priority_w(space, 0, data); break;
case 0x800: m_soundlatch->write(space, offset, data); break;
case 0x800: m_soundlatch->write(data); break;
case 0xc00: combatsc_vreg_w(space, 0, data); break;
default: m_io_ram[offset] = data; break;
}

View File

@ -79,13 +79,13 @@ Mighty Guy board layout:
WRITE8_MEMBER(cop01_state::cop01_sound_command_w)
{
m_soundlatch->write(space, offset, data);
m_audiocpu->set_input_line(0, ASSERT_LINE );
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, ASSERT_LINE);
}
READ8_MEMBER(cop01_state::cop01_sound_command_r)
{
int res = (m_soundlatch->read(space, offset) & 0x7f) << 1;
int res = (m_soundlatch->read() & 0x7f) << 1;
/* bit 0 seems to be a timer */
if ((m_audiocpu->total_cycles() / TIMER_RATE) & 1)

View File

@ -526,14 +526,14 @@ uint32_t corona_state::screen_update_luckyrlt(screen_device &screen, bitmap_ind1
WRITE8_MEMBER(corona_state::sound_latch_w)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_soundcpu->set_input_line(0, ASSERT_LINE);
}
READ8_MEMBER(corona_state::sound_latch_r)
{
m_soundcpu->set_input_line(0, CLEAR_LINE);
return m_soundlatch->read(space, 0);
return m_soundlatch->read();
}

View File

@ -299,15 +299,15 @@ WRITE8_MEMBER(cps_state::cps1_oki_pin7_w)
WRITE16_MEMBER(cps_state::cps1_soundlatch_w)
{
if (ACCESSING_BITS_0_7)
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
else
m_soundlatch->write(space, 0, data >> 8);
m_soundlatch->write(data >> 8);
}
WRITE16_MEMBER(cps_state::cps1_soundlatch2_w)
{
if (ACCESSING_BITS_0_7)
m_soundlatch2->write(space, 0, data & 0xff);
m_soundlatch2->write(data & 0xff);
}
WRITE16_MEMBER(cps_state::cps1_coinctrl_w)

View File

@ -57,7 +57,7 @@ WRITE8_MEMBER(crimfght_state::k052109_051960_w)
WRITE8_MEMBER(crimfght_state::sound_w)
{
// writing the latch asserts the irq line
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
}

View File

@ -376,7 +376,7 @@ READ8_MEMBER(cvs_state::cvs_speech_command_r)
{
/* FIXME: this was by observation on board ???
* -bit 7 is TMS status (active LO) */
return ((m_tms5110->ctl_r(space, 0) ^ 1) << 7) | (m_soundlatch->read(space, 0) & 0x7f);
return ((m_tms5110->ctl_r(space, 0) ^ 1) << 7) | (m_soundlatch->read() & 0x7f);
}
@ -432,7 +432,7 @@ WRITE8_MEMBER(cvs_state::audio_command_w)
{
LOG(("data %02x\n", data));
/* cause interrupt on audio CPU if bit 7 set */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
cvs_slave_cpu_interrupt(data & 0x80 ? 1 : 0);
}

View File

@ -513,7 +513,7 @@ WRITE8_MEMBER( cybertnk_state::sound_cmd_w )
}
else if (offset == 1)
{
m_soundlatch->write(space, offset, data & 0xff);
m_soundlatch->write(data & 0xff);
}
}

View File

@ -404,7 +404,7 @@ WRITE8_MEMBER(cyclemb_state::cyclemb_bankswitch_w)
#if 0
WRITE8_MEMBER(cyclemb_state::sound_cmd_w)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
#endif
@ -418,7 +418,7 @@ READ8_MEMBER(cyclemb_state::mcu_status_r)
WRITE8_MEMBER(cyclemb_state::sound_cmd_w)//actually ciom
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
#endif
@ -561,7 +561,7 @@ WRITE8_MEMBER( cyclemb_state::skydest_i8741_0_w )
m_mcu[0].txd = data;
m_mcu[1].rst = 0;
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
if(m_mcu[0].txd == 0x41)
m_mcu[0].state = 1;
@ -627,7 +627,7 @@ READ8_MEMBER(cyclemb_state::skydest_i8741_1_r)
if(m_mcu[1].rst == 1)
return 0x40;
return m_soundlatch->read(space,0);
return m_soundlatch->read();
}
WRITE8_MEMBER(cyclemb_state::skydest_i8741_1_w)
@ -639,7 +639,7 @@ WRITE8_MEMBER(cyclemb_state::skydest_i8741_1_w)
m_mcu[1].rst = 1;
}
//else
// m_soundlatch->clear_w(space, 0, 0);
// m_soundlatch->clear_w();
}

View File

@ -97,7 +97,7 @@ WRITE16_MEMBER(dbz_state::dbzcontrol_w)
WRITE16_MEMBER(dbz_state::dbz_sound_command_w)
{
m_soundlatch->write(space, 0, data >> 8);
m_soundlatch->write(data >> 8);
}
WRITE16_MEMBER(dbz_state::dbz_sound_cause_nmi)

View File

@ -349,7 +349,7 @@ WRITE8_MEMBER(ddayjlc_state::bg2_w)
WRITE8_MEMBER(ddayjlc_state::sound_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line_and_vector(0, HOLD_LINE, 0xff);
}

View File

@ -260,7 +260,7 @@ WRITE8_MEMBER(darktowr_state::darktowr_bankswitch_w)
*
*************************************/
void ddragon_state::ddragon_interrupt_ack(address_space &space, offs_t offset, uint8_t data)
void ddragon_state::ddragon_interrupt_ack(offs_t offset, uint8_t data)
{
switch (offset)
{
@ -277,7 +277,7 @@ void ddragon_state::ddragon_interrupt_ack(address_space &space, offs_t offset, u
break;
case 3: /* 380e - SND IRQ and latch */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
break;
case 4: /* 380f - MCU IRQ */
@ -290,14 +290,14 @@ void ddragon_state::ddragon_interrupt_ack(address_space &space, offs_t offset, u
READ8_MEMBER(ddragon_state::ddragon_interrupt_r)
{
ddragon_interrupt_ack(space, offset, 0xff);
ddragon_interrupt_ack(offset, 0xff);
return 0xff;
}
WRITE8_MEMBER(ddragon_state::ddragon_interrupt_w)
{
ddragon_interrupt_ack(space, offset, data);
ddragon_interrupt_ack(offset, data);
}

View File

@ -206,7 +206,7 @@ WRITE8_MEMBER(ddragon3_state::oki_bankswitch_w)
WRITE16_MEMBER(wwfwfest_state::wwfwfest_soundwrite)
{
// upper byte is always set to 0x31 for some reason
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
}

View File

@ -363,7 +363,7 @@ WRITE16_MEMBER(dec0_state::dec0_control_w)
case 4: /* 6502 sound cpu */
if (ACCESSING_BITS_0_7)
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
break;
case 6: /* Intel 8751 microcontroller - Bad Dudes, Heavy Barrel, Birdy Try only */
@ -398,7 +398,7 @@ WRITE16_MEMBER(dec0_automat_state::automat_control_w)
{
case 0xe: /* z80 sound cpu */
if (ACCESSING_BITS_0_7)
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
break;
case 12: /* DMA flag */
@ -425,7 +425,7 @@ WRITE16_MEMBER(dec0_automat_state::automat_control_w)
WRITE16_MEMBER(dec0_state::midres_sound_w)
{
if (ACCESSING_BITS_0_7)
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
}
/******************************************************************************/

View File

@ -361,7 +361,7 @@ WRITE8_MEMBER(dec8_state::csilver_control_w)
WRITE8_MEMBER(dec8_state::dec8_sound_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(m6502_device::NMI_LINE, ASSERT_LINE);
m_m6502_timer->adjust(m_audiocpu->cycles_to_attotime(3));
}

View File

@ -255,7 +255,7 @@ uint32_t deco_ld_state::screen_update_rblaster(screen_device &screen, bitmap_ind
WRITE8_MEMBER(deco_ld_state::decold_sound_cmd_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -151,7 +151,7 @@ WRITE16_MEMBER(diverboy_state::soundcmd_w)
{
if (ACCESSING_BITS_0_7)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
}

View File

@ -273,11 +273,11 @@ WRITE8_MEMBER(djboy_state::beast_p0_w)
{
if (!BIT(m_beast_p0, 1) && BIT(data, 1))
{
m_slavelatch->write(space, 0, m_beast_p1);
m_slavelatch->write(m_beast_p1);
}
if (BIT(data, 0) == 0)
m_beastlatch->acknowledge_w(space, 0, data);
m_beastlatch->acknowledge_w();
m_beast_p0 = data;
}
@ -285,7 +285,7 @@ WRITE8_MEMBER(djboy_state::beast_p0_w)
READ8_MEMBER(djboy_state::beast_p1_r)
{
if (BIT(m_beast_p0, 0) == 0)
return m_beastlatch->read(space, 0);
return m_beastlatch->read();
else
return 0; // ?
}

View File

@ -115,7 +115,7 @@ private:
WRITE8_MEMBER(dmndrby_state::dderby_sound_w)
{
m_soundlatch->write(space,0,data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -227,7 +227,7 @@ WRITE8_MEMBER(egghunt_state::egghunt_vidram_bank_w)
WRITE8_MEMBER(egghunt_state::egghunt_soundlatch_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -444,7 +444,7 @@ WRITE8_MEMBER(equites_state::equites_c0f8_w)
case 7: // c0ff: sound command latch clear
// Note: solder pad CP1 on the pcb would allow to disable this
m_soundlatch->clear_w(space, 0, 0);
m_soundlatch->clear_w();
break;
}
}

View File

@ -85,9 +85,9 @@ ToDo:
***************************************************************************/
WRITE8_MEMBER(esd16_state::sound_command_w)
void esd16_state::sound_command_w(u8 data)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_maincpu->spin_until_time(attotime::from_usec(50)); // Allow the other CPU to reply
}

View File

@ -96,7 +96,7 @@ INTERRUPT_GEN_MEMBER(espial_state::espial_sound_nmi_gen)
WRITE8_MEMBER(espial_state::espial_master_soundlatch_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -174,8 +174,8 @@ WRITE16_MEMBER(exterm_state::output_port_0_w)
WRITE8_MEMBER(exterm_state::sound_latch_w)
{
// data is latched independently for both sound CPUs
m_soundlatch[0]->write(space, 0, data);
m_soundlatch[1]->write(space, 0, data);
m_soundlatch[0]->write(data);
m_soundlatch[1]->write(data);
}

View File

@ -74,7 +74,7 @@ WRITE8_MEMBER(fantland_state::nmi_enable_w)
WRITE8_MEMBER(fantland_state::soundlatch_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -102,7 +102,7 @@ WRITE16_MEMBER( cps_state::fcrash_soundlatch_w )
{
if (ACCESSING_BITS_0_7)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
}
@ -111,7 +111,7 @@ WRITE16_MEMBER(cps_state::cawingbl_soundlatch_w)
{
if (ACCESSING_BITS_8_15)
{
m_soundlatch->write(space, 0, data >> 8);
m_soundlatch->write(data >> 8);
m_audiocpu->set_input_line(0, HOLD_LINE);
machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(50)); /* boost the interleave or some voices get dropped */
}

View File

@ -262,7 +262,7 @@ WRITE8_MEMBER(flipjack_state::layer_w)
WRITE8_MEMBER(flipjack_state::soundlatch_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
if (BIT(data, 7))
m_audiocpu->set_input_line(0, ASSERT_LINE);
}

View File

@ -69,7 +69,7 @@ WRITE8_MEMBER(flkatck_state::flkatck_ls138_w)
flkatck_bankswitch_w(space, 0, data);
break;
case 0x05: /* sound code number */
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
break;
case 0x06: /* Cause interrupt on audio CPU */
m_audiocpu->set_input_line(0, HOLD_LINE);

View File

@ -316,7 +316,7 @@ WRITE8_MEMBER(flower_state::coin_counter_w)
WRITE8_MEMBER(flower_state::sound_command_w)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
if(m_audio_nmi_enable == true)
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -37,8 +37,8 @@
WRITE16_MEMBER(fromanc2_state::sndcmd_w)
{
m_soundlatch->write(space, offset, (data >> 8) & 0xff); // 1P (LEFT)
m_soundlatch2->write(space, offset, data & 0xff); // 2P (RIGHT)
m_soundlatch->write((data >> 8) & 0xff); // 1P (LEFT)
m_soundlatch2->write(data & 0xff); // 2P (RIGHT)
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
m_sndcpu_nmi_flag = 0;

View File

@ -77,7 +77,7 @@ WRITE16_MEMBER(fuuki16_state::vregs_w)
WRITE8_MEMBER( fuuki16_state::sound_command_w )
{
m_soundlatch->write(space,0,data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
// m_maincpu->spin_until_time(attotime::from_usec(50)); // Allow the other CPU to reply
machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(50)); // Fixes glitching in rasters

View File

@ -213,7 +213,7 @@ void gaelco3d_state::machine_reset()
{
MACHINE_RESET_CALL_MEMBER( common );
m_tms_offset_xor = 0;
m_soundlatch->acknowledge_w(machine().dummy_space(), 0, 0);
m_soundlatch->acknowledge_w();
}

View File

@ -955,7 +955,7 @@ WRITE8_MEMBER(galaxian_state::explorer_sound_control_w)
READ8_MEMBER(galaxian_state::explorer_sound_latch_r)
{
m_audiocpu->set_input_line(0, CLEAR_LINE);
return m_soundlatch->read(m_audiocpu->space(AS_PROGRAM), 0);
return m_soundlatch->read();
}
@ -1349,7 +1349,7 @@ WRITE8_MEMBER(galaxian_state::kingball_sound1_w)
WRITE8_MEMBER(galaxian_state::kingball_sound2_w)
{
m_kingball_sound = (m_kingball_sound & ~0x02) | (data << 1);
m_soundlatch->write(space, 0, m_kingball_sound | 0xf0);
m_soundlatch->write(m_kingball_sound | 0xf0);
}
@ -1425,7 +1425,7 @@ READ8_MEMBER(galaxian_state::jumpbug_protection_r)
WRITE8_MEMBER(galaxian_state::checkman_sound_command_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -44,12 +44,12 @@ TODO
WRITE8_MEMBER(galivan_state::galivan_sound_command_w)
{
m_soundlatch->write(space,0,((data & 0x7f) << 1) | 1);
m_soundlatch->write(((data & 0x7f) << 1) | 1);
}
READ8_MEMBER(galivan_state::soundlatch_clear_r)
{
m_soundlatch->clear_w(space, 0, 0);
m_soundlatch->clear_w();
return 0;
}

View File

@ -51,7 +51,7 @@ WRITE16_MEMBER(galspnbl_state::soundcommand_w)
{
if (ACCESSING_BITS_0_7)
{
m_soundlatch->write(space,offset,data & 0xff);
m_soundlatch->write(data & 0xff);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}
}

View File

@ -167,8 +167,7 @@ WRITE_LINE_MEMBER(gameplan_state::r6532_irq)
WRITE8_MEMBER(gameplan_state::r6532_soundlatch_w)
{
address_space &progspace = m_maincpu->space(AS_PROGRAM);
m_soundlatch->write(progspace, 0, data);
m_soundlatch->write(data);
}

View File

@ -185,7 +185,7 @@ WRITE8_MEMBER( ghosteo_state::qs1000_p3_w )
membank("qs1000:bank")->set_entry(data & 0x07);
if (!BIT(data, 5))
m_soundlatch->acknowledge_w(space, 0, !BIT(data, 5));
m_soundlatch->acknowledge_w();
}

View File

@ -254,14 +254,14 @@ WRITE8_MEMBER(ppking_state::cpu2_irq_ack_w)
WRITE8_MEMBER(gladiatr_state_base::adpcm_command_w)
{
m_soundlatch->write(space,0,data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
}
READ8_MEMBER(gladiatr_state_base::adpcm_command_r)
{
m_audiocpu->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
return m_soundlatch->read(space,0);
return m_soundlatch->read();
}
WRITE_LINE_MEMBER(gladiatr_state_base::flipscreen_w)
@ -550,7 +550,7 @@ WRITE8_MEMBER(ppking_state::ppking_qx0_w)
m_mcu[0].txd = data;
m_mcu[1].rst = 0;
m_soundlatch2->write(space, 0, data & 0xff);
m_soundlatch2->write(data & 0xff);
mcu_input_check();
@ -580,7 +580,7 @@ READ8_MEMBER(ppking_state::ppking_qx1_r)
if(m_mcu[1].rst == 1)
return 0x40;
return m_soundlatch2->read(space,0);
return m_soundlatch2->read();
}
READ8_MEMBER(ppking_state::ppking_qx3_r)

View File

@ -85,7 +85,7 @@ private:
WRITE16_MEMBER(go2000_state::sound_cmd_w)
{
m_soundlatch->write(space, offset, data & 0xff);
m_soundlatch->write(data & 0xff);
m_soundcpu->set_input_line(0, HOLD_LINE);
}

View File

@ -24,7 +24,7 @@ WRITE16_MEMBER(goal92_state::goal92_sound_command_w)
{
if (ACCESSING_BITS_8_15)
{
m_soundlatch->write(space, 0, (data >> 8) & 0xff);
m_soundlatch->write((data >> 8) & 0xff);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
}

View File

@ -395,7 +395,7 @@ WRITE8_MEMBER(gsword_state::nmi_set_w)
WRITE8_MEMBER(gsword_state::sound_command_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -1603,7 +1603,7 @@ WRITE8_MEMBER(halleys_state::sndnmi_msk_w)
WRITE8_MEMBER(halleys_state::soundcommand_w)
{
m_io_ram[0x8a] = data;
m_soundlatch->write(space,offset,data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -1773,7 +1773,7 @@ READ8_MEMBER(pairmtch_state::input_r)
WRITE8_MEMBER(pairmtch_state::sound_w)
{
// R5x: soundlatch (to audiocpu R2x)
m_soundlatch[0]->write(space, 0, bitswap<8>(data,7,6,5,4,0,1,2,3));
m_soundlatch[0]->write(bitswap<8>(data,7,6,5,4,0,1,2,3));
}
// handlers: audiocpu side
@ -1781,7 +1781,7 @@ WRITE8_MEMBER(pairmtch_state::sound_w)
WRITE8_MEMBER(pairmtch_state::sound2_w)
{
// R2x: soundlatch (to maincpu R5x)
m_soundlatch[1]->write(space, 0, bitswap<8>(data,7,6,5,4,0,1,2,3));
m_soundlatch[1]->write(bitswap<8>(data,7,6,5,4,0,1,2,3));
}
WRITE16_MEMBER(pairmtch_state::speaker_w)

View File

@ -117,7 +117,7 @@ WRITE8_MEMBER(himesiki_state::himesiki_rombank_w)
WRITE8_MEMBER(himesiki_state::himesiki_sound_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_subcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -311,7 +311,7 @@ WRITE8_MEMBER(homedata_state::mrokumei_sound_bank_w)
WRITE8_MEMBER(homedata_state::mrokumei_sound_cmd_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}
@ -430,7 +430,7 @@ READ8_MEMBER(homedata_state::pteacher_keyboard_r)
READ8_MEMBER(homedata_state::pteacher_upd7807_porta_r)
{
if (!BIT(m_upd7807_portc, 6))
m_upd7807_porta = m_soundlatch->read(space, 0);
m_upd7807_porta = m_soundlatch->read();
else
logerror("%s: read PA with PC *not* clear\n", machine().describe_context());

View File

@ -327,10 +327,10 @@ READ8_MEMBER(hvyunit_state::mermaid_p0_r)
WRITE8_MEMBER(hvyunit_state::mermaid_p0_w)
{
if (!BIT(m_mermaid_p[0], 1) && BIT(data, 1))
m_slavelatch->write(space, 0, m_mermaid_p[1]);
m_slavelatch->write(m_mermaid_p[1]);
if (BIT(data, 0) == 0)
m_mermaid_p[1] = m_mermaidlatch->read(space, 0);
m_mermaid_p[1] = m_mermaidlatch->read();
m_mermaid_p[0] = data;
}

View File

@ -436,7 +436,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(ironhors_state::farwest_scanline_tick)
READ8_MEMBER(ironhors_state::farwest_soundlatch_r)
{
return m_soundlatch->read(m_soundcpu->space(AS_PROGRAM), 0);
return m_soundlatch->read();
}
void ironhors_state::farwest(machine_config &config)

View File

@ -814,7 +814,7 @@ WRITE8_MEMBER(itech8_state::gtg2_sound_data_w)
((data & 0x5d) << 1) |
((data & 0x20) >> 3) |
((data & 0x02) << 5);
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
}

View File

@ -260,14 +260,14 @@ READ8_MEMBER(jangou_state::input_system_r)
WRITE8_MEMBER(jangou_state::sound_latch_w)
{
m_soundlatch->write(space, 0, data & 0xff);
m_soundlatch->write(data & 0xff);
m_cpu_1->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
}
READ8_MEMBER(jangou_state::sound_latch_r)
{
m_cpu_1->set_input_line(INPUT_LINE_NMI, CLEAR_LINE);
return m_soundlatch->read(space, 0);
return m_soundlatch->read();
}
/* Jangou HC-55516 CVSD */

View File

@ -389,14 +389,14 @@ WRITE8_MEMBER(kas89_state::sound_comm_w)
else
{
m_soundlatch->write(space, 0, data);
m_audiocpu->set_input_line(0, ASSERT_LINE );
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, ASSERT_LINE);
}
}
WRITE8_MEMBER(kas89_state::int_ack_w)
{
m_audiocpu->set_input_line(0, CLEAR_LINE );
m_audiocpu->set_input_line(0, CLEAR_LINE);
}

View File

@ -385,7 +385,7 @@ WRITE8_MEMBER(kickgoal_state::soundio_port_c_w)
{
if (!(data & 0x10))
{
m_pic_portb = m_soundlatch->read(space, 0);
m_pic_portb = m_soundlatch->read();
m_sound_command_sent = 0x00;
}
}
@ -412,7 +412,7 @@ WRITE8_MEMBER(kickgoal_state::soundio_port_c_w)
WRITE16_MEMBER(kickgoal_state::to_pic_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_sound_command_sent = 0x20;
}

View File

@ -47,7 +47,7 @@ void kingofb_state::scroll_interrupt_w(uint8_t data)
void kingofb_state::sound_command_w(uint8_t data)
{
m_soundlatch->write(machine().dummy_space(), 0, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line_and_vector(0, HOLD_LINE, 0xff);
}

View File

@ -69,7 +69,7 @@ private:
WRITE8_MEMBER(kingpin_state::sound_nmi_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
m_audiocpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -39,7 +39,7 @@ Updates:
WRITE8_MEMBER(kncljoe_state::sound_cmd_w)
{
if ((data & 0x80) == 0)
m_soundlatch->write(space, 0, data & 0x7f);
m_soundlatch->write(data & 0x7f);
else
m_soundcpu->set_input_line(0, ASSERT_LINE);
}

View File

@ -93,7 +93,7 @@ WRITE8_MEMBER(ksayakyu_state::bank_select_w)
WRITE8_MEMBER(ksayakyu_state::latch_w)
{
m_sound_status &= ~0x80;
m_soundlatch->write(space, 0, data | 0x80);
m_soundlatch->write(data | 0x80);
}
READ8_MEMBER(ksayakyu_state::sound_status_r)
@ -104,7 +104,7 @@ READ8_MEMBER(ksayakyu_state::sound_status_r)
WRITE8_MEMBER(ksayakyu_state::tomaincpu_w)
{
m_sound_status |= 0x80;
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
}
READ8_MEMBER(ksayakyu_state::int_ack_r)

View File

@ -89,7 +89,7 @@ TIMER_CALLBACK_MEMBER(ladyfrog_state::nmi_callback)
WRITE8_MEMBER(ladyfrog_state::sound_command_w)
{
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
machine().scheduler().synchronize(timer_expired_delegate(FUNC(ladyfrog_state::nmi_callback),this), data);
}

View File

@ -52,7 +52,7 @@ INPUT_CHANGED_MEMBER(lasso_state::coin_inserted)
/* Write to the sound latch and generate an IRQ on the sound CPU */
WRITE8_MEMBER(lasso_state::sound_command_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(0, HOLD_LINE);
}

View File

@ -198,7 +198,7 @@ WRITE8_MEMBER(limenko_state::qs1000_p3_w)
membank("qs1000:bank")->set_entry(data & 0x07);
if (!BIT(data, 5))
m_soundlatch->acknowledge_w(space, 0, !BIT(data, 5));
m_soundlatch->acknowledge_w();
}
/*****************************************************************************************************
@ -273,7 +273,7 @@ READ8_MEMBER(limenko_state::spotty_sound_r)
// check m_spotty_sound_cmd bits...
if(m_spotty_sound_cmd == 0xf7)
return m_soundlatch->read(space,0);
return m_soundlatch->read();
else
return m_oki->read();
}

View File

@ -419,7 +419,7 @@ WRITE_LINE_MEMBER(looping_state::looping_spcint)
WRITE8_MEMBER(looping_state::looping_soundlatch_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(INT_9980A_LEVEL2, ASSERT_LINE);
}

View File

@ -272,8 +272,8 @@ READ16_MEMBER(lordgun_state::lordgun_gun_1_y_r)
WRITE16_MEMBER(lordgun_state::soundlatch_w)
{
if (ACCESSING_BITS_0_7) m_soundlatch->write(space, 0, (data >> 0) & 0xff);
if (ACCESSING_BITS_8_15) m_soundlatch2->write(space, 0, (data >> 8) & 0xff);
if (ACCESSING_BITS_0_7) m_soundlatch->write((data >> 0) & 0xff);
if (ACCESSING_BITS_8_15) m_soundlatch2->write((data >> 8) & 0xff);
m_soundcpu->pulse_input_line(INPUT_LINE_NMI, attotime::zero);
}

View File

@ -139,7 +139,7 @@ WRITE8_MEMBER(lwings_state::avengers_protection_w)
else if (pc == 0x0445)
{
m_soundstate = 0x80;
m_soundlatch->write(space, 0, data);
m_soundlatch->write(data);
}
}
@ -1766,7 +1766,7 @@ ROM_END
void lwings_state::init_avengersb()
{
/* set up protection handlers */
m_maincpu->space(AS_PROGRAM).install_write_handler(0xf80c, 0xf80c, write8_delegate(FUNC(generic_latch_8_device::write), (generic_latch_8_device*)m_soundlatch));
m_maincpu->space(AS_PROGRAM).install_write_handler(0xf80c, 0xf80c, write8smo_delegate(FUNC(generic_latch_8_device::write), (generic_latch_8_device*)m_soundlatch));
}

View File

@ -457,7 +457,7 @@ READ8_MEMBER(m63_state::snddata_r)
{
switch (m_p2 & 0xf0)
{
case 0x60: return m_soundlatch->read(space, 0); ;
case 0x60: return m_soundlatch->read();
case 0x70: return memregion("user1")->base()[((m_p1 & 0x1f) << 8) | offset];
}
return 0xff;

View File

@ -310,7 +310,7 @@ WRITE32_MEMBER(macrossp_state::macrossp_soundcmd_w)
if (ACCESSING_BITS_16_31)
{
//logerror("%08x write soundcmd %08x (%08x)\n",m_maincpu->pc(),data,mem_mask);
m_soundlatch->write(space, 0, data >> 16, 0xffff);
m_soundlatch->write(data >> 16);
m_sndpending = 1;
m_audiocpu->set_input_line(2, HOLD_LINE);
/* spin for a while to let the sound CPU read the command */
@ -322,7 +322,7 @@ READ16_MEMBER(macrossp_state::macrossp_soundcmd_r)
{
// logerror("%06x read soundcmd\n",m_audiocpu->pc());
m_sndpending = 0;
return m_soundlatch->read(space, offset, mem_mask);
return m_soundlatch->read();
}
WRITE16_MEMBER(macrossp_state::palette_fade_w)

View File

@ -40,7 +40,7 @@ WRITE16_MEMBER(magmax_state::cpu_irq_ack_w)
READ8_MEMBER(magmax_state::sound_r)
{
return (m_soundlatch->read(space, 0) << 1) | m_LS74_q;
return (m_soundlatch->read() << 1) | m_LS74_q;
}
WRITE8_MEMBER(magmax_state::ay8910_portB_0_w)

View File

@ -58,13 +58,13 @@ READ8_MEMBER(matmania_state::maniach_mcu_status_r)
WRITE8_MEMBER(matmania_state::matmania_sh_command_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(M6502_IRQ_LINE, HOLD_LINE);
}
WRITE8_MEMBER(matmania_state::maniach_sh_command_w)
{
m_soundlatch->write(space, offset, data);
m_soundlatch->write(data);
m_audiocpu->set_input_line(M6809_IRQ_LINE, HOLD_LINE);
}

View File

@ -962,8 +962,8 @@ void mazerbla_state::machine_reset()
if (m_soundlatch.found())
{
m_soundlatch->clear_w(machine().dummy_space(), 0, 0);
m_soundlatch->acknowledge_w(machine().dummy_space(), 0, 0);
m_soundlatch->clear_w();
m_soundlatch->acknowledge_w();
}
for (i = 0; i < 4; i++)

Some files were not shown because too many files have changed in this diff Show More