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/microterm.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/microterm.cpp')
-rw-r--r-- | src/mame/drivers/microterm.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/microterm.cpp b/src/mame/drivers/microterm.cpp index a2eba82f16e..e44b1058995 100644 --- a/src/mame/drivers/microterm.cpp +++ b/src/mame/drivers/microterm.cpp @@ -28,6 +28,8 @@ public: DECLARE_READ8_MEMBER(c000_r); SCN2674_DRAW_CHARACTER_MEMBER(draw_character); + void mt420(machine_config &config); + void mt5510(machine_config &config); private: required_device<cpu_device> m_maincpu; optional_region_ptr<u8> m_p_chargen; @@ -80,7 +82,7 @@ ADDRESS_MAP_END static INPUT_PORTS_START( microterm ) INPUT_PORTS_END -static MACHINE_CONFIG_START( mt420 ) +MACHINE_CONFIG_START(microterm_state::mt420) MCFG_CPU_ADD("maincpu", Z80, 4'000'000) MCFG_CPU_PROGRAM_MAP(mt420_mem_map) MCFG_CPU_IO_MAP(mt420_io_map) @@ -110,7 +112,7 @@ static MACHINE_CONFIG_START( mt420 ) MCFG_VIDEO_SET_SCREEN("screen") MACHINE_CONFIG_END -static MACHINE_CONFIG_START( mt5510 ) +MACHINE_CONFIG_START(microterm_state::mt5510) MCFG_CPU_ADD("maincpu", Z80, XTAL_6MHz) MCFG_CPU_PROGRAM_MAP(mt5510_mem_map) MCFG_CPU_IO_MAP(mt5510_io_map) |