diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-01-07 22:20:14 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-01-17 16:11:18 +0100 |
commit | d469cc04bcace0f601802301caeddc5b473b75f2 (patch) | |
tree | a9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/isbc8010.cpp | |
parent | 9f383f76ce6f00cc3320e5ba53dc323781e0077b (diff) |
API Change: Machine configs are now a method of the owner class, and the prototype is simplified [O. Galibert]
Beware, the device context does not follow in MCFG_FRAGMENT_ADD
anymore due to the prototype change. So creating a device then
configuring through a fragment doesn't work as-is. The simplest
solution is just to add a MCFG_DEVICE_MODIFY at the start of the
fragment with the correct tag.
Diffstat (limited to 'src/mame/drivers/isbc8010.cpp')
-rw-r--r-- | src/mame/drivers/isbc8010.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mame/drivers/isbc8010.cpp b/src/mame/drivers/isbc8010.cpp index a3f662c6a0c..5d5363d011e 100644 --- a/src/mame/drivers/isbc8010.cpp +++ b/src/mame/drivers/isbc8010.cpp @@ -58,6 +58,9 @@ public: DECLARE_WRITE_LINE_MEMBER( usart_clock_tick ); + void isbc8010b(machine_config &config); + void isbc8010a(machine_config &config); + void isbc8010(machine_config &config); private: required_device<cpu_device> m_maincpu; required_device<i8251_device> m_usart; @@ -159,7 +162,7 @@ static DEVICE_INPUT_DEFAULTS_START( terminal ) // set up terminal to default to DEVICE_INPUT_DEFAULTS( "RS232_STOPBITS", 0xff, RS232_STOPBITS_1 ) DEVICE_INPUT_DEFAULTS_END -static MACHINE_CONFIG_START( isbc8010 ) +MACHINE_CONFIG_START(isbc8010_state::isbc8010) /* basic machine hardware */ MCFG_CPU_ADD("maincpu", I8080A, XTAL_18_432MHz/9) MCFG_CPU_PROGRAM_MAP(isbc8010_mem) @@ -222,13 +225,13 @@ static MACHINE_CONFIG_START( isbc8010 ) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( isbc8010a, isbc8010 ) +MACHINE_CONFIG_DERIVED(isbc8010_state::isbc8010a, isbc8010) /* basic machine hardware */ MCFG_CPU_MODIFY( "maincpu" ) MCFG_CPU_PROGRAM_MAP(isbc8010a_mem) MACHINE_CONFIG_END -static MACHINE_CONFIG_DERIVED( isbc8010b, isbc8010 ) +MACHINE_CONFIG_DERIVED(isbc8010_state::isbc8010b, isbc8010) /* basic machine hardware */ MCFG_CPU_MODIFY("maincpu") MCFG_CPU_PROGRAM_MAP(isbc8010b_mem) |