mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
pecom.cpp: Eliminate some MCFG macros (nw)
This commit is contained in:
parent
4d69f34870
commit
7bbe476cc9
@ -170,30 +170,31 @@ static INPUT_PORTS_START( pecom )
|
||||
INPUT_PORTS_END
|
||||
|
||||
/* Machine driver */
|
||||
MACHINE_CONFIG_START(pecom_state::pecom64)
|
||||
void pecom_state::pecom64(machine_config &config)
|
||||
{
|
||||
/* basic machine hardware */
|
||||
MCFG_DEVICE_ADD(CDP1802_TAG, CDP1802, cdp1869_device::DOT_CLK_PAL/3)
|
||||
MCFG_DEVICE_PROGRAM_MAP(pecom64_mem)
|
||||
MCFG_DEVICE_IO_MAP(pecom64_io)
|
||||
MCFG_COSMAC_WAIT_CALLBACK(CONSTANT(1))
|
||||
MCFG_COSMAC_CLEAR_CALLBACK(READLINE(*this, pecom_state, clear_r))
|
||||
MCFG_COSMAC_EF2_CALLBACK(READLINE(*this, pecom_state, ef2_r))
|
||||
MCFG_COSMAC_Q_CALLBACK(WRITELINE(*this, pecom_state, q_w))
|
||||
MCFG_COSMAC_SC_CALLBACK(WRITE8(*this, pecom_state, sc_w))
|
||||
CDP1802(config, m_cdp1802, cdp1869_device::DOT_CLK_PAL);
|
||||
m_cdp1802->set_addrmap(AS_PROGRAM, &pecom_state::pecom64_mem);
|
||||
m_cdp1802->set_addrmap(AS_IO, &pecom_state::pecom64_io);
|
||||
m_cdp1802->wait_cb().set_constant(1);
|
||||
m_cdp1802->clear_cb().set(FUNC(pecom_state::clear_r));
|
||||
m_cdp1802->ef2_cb().set(FUNC(pecom_state::ef2_r));
|
||||
m_cdp1802->q_cb().set(FUNC(pecom_state::q_w));
|
||||
m_cdp1802->sc_cb().set(FUNC(pecom_state::sc_w));
|
||||
|
||||
// sound and video hardware
|
||||
pecom_video(config);
|
||||
|
||||
// devices
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("pecom_cass")
|
||||
CASSETTE(config, m_cassette);
|
||||
m_cassette->set_default_state(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED);
|
||||
m_cassette->set_interface("pecom_cass");
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","pecom_cass")
|
||||
SOFTWARE_LIST(config, "cass_list").set_original("pecom_cass");
|
||||
|
||||
/* internal ram */
|
||||
RAM(config, RAM_TAG).set_default_size("32K").set_default_value(0);
|
||||
MACHINE_CONFIG_END
|
||||
}
|
||||
|
||||
/* ROM definition */
|
||||
ROM_START( pecom32 )
|
||||
|
Loading…
Reference in New Issue
Block a user