(nw) more cleanups

This commit is contained in:
Robbbert 2017-09-21 18:54:46 +10:00
parent be9031bb66
commit 39b1c911a0
5 changed files with 5 additions and 41 deletions

View File

@ -29,7 +29,6 @@ public:
{ }
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
};
@ -53,10 +52,6 @@ static INPUT_PORTS_START( jade )
INPUT_PORTS_END
void jade_state::machine_reset()
{
}
static MACHINE_CONFIG_START( jade )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",Z80, XTAL_4MHz)

View File

@ -44,7 +44,6 @@ public:
DECLARE_READ8_MEMBER(rpt_pc_r);
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
};
@ -69,11 +68,6 @@ ADDRESS_MAP_END
static INPUT_PORTS_START( mice )
INPUT_PORTS_END
void mice_state::machine_reset()
{
}
// This port presumably connects to dipswitches to set the serial protocol
READ8_MEMBER( mice_state::rpt_pc_r )
{

View File

@ -33,17 +33,12 @@ public:
mits680b_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag)
, m_maincpu(*this, "maincpu")
, m_acia(*this, "acia")
{
}
{ }
DECLARE_READ8_MEMBER(status_check_r);
DECLARE_WRITE_LINE_MEMBER(clock_tick);
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
required_device<acia6850_device> m_acia;
};
READ8_MEMBER( mits680b_state::status_check_r )
@ -51,12 +46,6 @@ READ8_MEMBER( mits680b_state::status_check_r )
return 0; // crashes at start if bit 7 high
}
WRITE_LINE_MEMBER( mits680b_state::clock_tick )
{
m_acia->write_txc(state);
m_acia->write_rxc(state);
}
static ADDRESS_MAP_START(mits680b_mem, AS_PROGRAM, 8, mits680b_state)
ADDRESS_MAP_UNMAP_HIGH
@ -72,15 +61,15 @@ static INPUT_PORTS_START( mits680b )
INPUT_PORTS_END
void mits680b_state::machine_reset()
{
}
static MACHINE_CONFIG_START( mits680b )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M6800, XTAL_1MHz / 2)
MCFG_CPU_PROGRAM_MAP(mits680b_mem)
MCFG_DEVICE_ADD("uart_clock", CLOCK, 153600)
MCFG_CLOCK_SIGNAL_HANDLER(DEVWRITELINE("acia", acia6850_device, write_txc))
MCFG_DEVCB_CHAIN_OUTPUT(DEVWRITELINE("acia", acia6850_device, write_rxc))
MCFG_DEVICE_ADD("acia", ACIA6850, 0)
MCFG_ACIA6850_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd))
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
@ -88,9 +77,6 @@ static MACHINE_CONFIG_START( mits680b )
MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal")
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("acia", acia6850_device, write_rxd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("acia", acia6850_device, write_cts))
MCFG_DEVICE_ADD("uart_clock", CLOCK, 153600)
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(mits680b_state, clock_tick))
MACHINE_CONFIG_END
/* ROM definition */

View File

@ -45,7 +45,6 @@ public:
{ }
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
};
@ -74,10 +73,6 @@ static INPUT_PORTS_START( seattle )
INPUT_PORTS_END
void seattle_comp_state::machine_reset()
{
}
// bit 7 needs to be stripped off, we do this by choosing 7 bits and even parity
static DEVICE_INPUT_DEFAULTS_START( terminal )
DEVICE_INPUT_DEFAULTS( "RS232_RXBAUD", 0xff, RS232_BAUD_9600 )

View File

@ -51,7 +51,6 @@ public:
{ }
private:
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
};
@ -76,11 +75,6 @@ static INPUT_PORTS_START( zsbc3 )
INPUT_PORTS_END
void zsbc3_state::machine_reset()
{
}
static MACHINE_CONFIG_START( zsbc3 )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",Z80, XTAL_16MHz /4)