summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/orion.cpp
diff options
context:
space:
mode:
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
commitd469cc04bcace0f601802301caeddc5b473b75f2 (patch)
treea9d71540c9c69cee5ab3a533476b81833fa02f5f /src/mame/drivers/orion.cpp
parent9f383f76ce6f00cc3320e5ba53dc323781e0077b (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/orion.cpp')
-rw-r--r--src/mame/drivers/orion.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/orion.cpp b/src/mame/drivers/orion.cpp
index 1655b9a63e3..76b19764966 100644
--- a/src/mame/drivers/orion.cpp
+++ b/src/mame/drivers/orion.cpp
@@ -85,7 +85,7 @@ static SLOT_INTERFACE_START( orion_floppies )
SLOT_INTERFACE_END
/* Machine driver */
-static MACHINE_CONFIG_START( orion128 )
+MACHINE_CONFIG_START(orion_state::orion128)
MCFG_CPU_ADD("maincpu", I8080, 2000000)
MCFG_CPU_PROGRAM_MAP(orion128_mem)
MCFG_CPU_IO_MAP(orion128_io)
@@ -147,7 +147,7 @@ static MACHINE_CONFIG_START( orion128 )
MCFG_RAM_DEFAULT_VALUE(0x00)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( orion128ms, orion128 )
+MACHINE_CONFIG_DERIVED(orion_state::orion128ms, orion128)
MCFG_DEVICE_REMOVE("ppi8255_2")
MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0)
MCFG_I8255_OUT_PORTA_CB(WRITE8(radio86_state, radio86_8255_porta_w2))
@@ -157,7 +157,7 @@ static MACHINE_CONFIG_DERIVED( orion128ms, orion128 )
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( orionz80 )
+MACHINE_CONFIG_START(orion_state::orionz80)
MCFG_CPU_ADD("maincpu", Z80, 2500000)
MCFG_CPU_PROGRAM_MAP(orionz80_mem)
MCFG_CPU_IO_MAP(orionz80_io)
@@ -226,7 +226,7 @@ static MACHINE_CONFIG_START( orionz80 )
MCFG_RAM_DEFAULT_VALUE(0x00)
MACHINE_CONFIG_END
-static MACHINE_CONFIG_DERIVED( orionz80ms, orionz80 )
+MACHINE_CONFIG_DERIVED(orion_state::orionz80ms, orionz80)
MCFG_DEVICE_REMOVE("ppi8255_2")
MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0)
@@ -236,7 +236,7 @@ static MACHINE_CONFIG_DERIVED( orionz80ms, orionz80 )
MCFG_I8255_OUT_PORTC_CB(WRITE8(radio86_state, radio86_8255_portc_w2))
MACHINE_CONFIG_END
-static MACHINE_CONFIG_START( orionpro )
+MACHINE_CONFIG_START(orion_state::orionpro)
MCFG_CPU_ADD("maincpu", Z80, 5000000)
MCFG_CPU_PROGRAM_MAP(orionpro_mem)
MCFG_CPU_IO_MAP(orionpro_io)