diff --git a/src/mame/drivers/hh_cop400.cpp b/src/mame/drivers/hh_cop400.cpp index a946ceffc08..fcf3eabc189 100644 --- a/src/mame/drivers/hh_cop400.cpp +++ b/src/mame/drivers/hh_cop400.cpp @@ -653,16 +653,33 @@ public: plus1_state(const machine_config &mconfig, device_type type, const char *tag) : hh_cop400_state(mconfig, type, tag) { } + + DECLARE_WRITE8_MEMBER(write_d); }; // handlers -//.. +WRITE8_MEMBER(plus1_state::write_d) +{ + // D?: speaker out + m_speaker->level_w(data & 1); +} // config static INPUT_PORTS_START( plus1 ) + PORT_START("IN.0") // port G + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) + + PORT_START("IN.1") // port L + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) INPUT_PORTS_END static MACHINE_CONFIG_START( plus1, plus1_state ) @@ -670,6 +687,9 @@ static MACHINE_CONFIG_START( plus1, plus1_state ) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", COP410, 1000000) // approximation - RC osc. R=51K to +5V, C=100pf to GND MCFG_COP400_CONFIG(COP400_CKI_DIVISOR_16, COP400_CKO_OSCILLATOR_OUTPUT, true) // guessed + MCFG_COP400_WRITE_D_CB(WRITE8(plus1_state, write_d)) + MCFG_COP400_READ_G_CB(IOPORT("IN.0")) + MCFG_COP400_READ_L_CB(IOPORT("IN.1")) /* no visual feedback! */ diff --git a/src/mame/drivers/hh_hmcs40.cpp b/src/mame/drivers/hh_hmcs40.cpp index 02434fd6f48..d3639a6fb84 100644 --- a/src/mame/drivers/hh_hmcs40.cpp +++ b/src/mame/drivers/hh_hmcs40.cpp @@ -58,10 +58,10 @@ @88 HD38820A 1984, Bandai Pair Match (PT-460) (1/2) @89 HD38820A 1984, Bandai Pair Match (PT-460) (2/2) - *75 HD44801A 1982, Alpha 8201 protection MCU (have dump) + 75 HD44801A 1982, Alpha 8201 protection MCU -> machine/alpha8201.* - *35 HD44801B 1983, Alpha 8302 protection MCU (have dump) - *42 HD44801B 1984, Alpha 8303 protection MCU (have dump) + 35 HD44801B 1983, Alpha 8302 protection MCU (see 8201) + 42 HD44801B 1984, Alpha 8303 protection MCU (see 8201) (* denotes not yet emulated by MAME, @ denotes it's in this driver)