summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/avigo.cpp
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2019-06-30 06:38:06 +0200
committer MooglyGuy <therealmogminer@gmail.com>2019-06-30 15:08:18 +0200
commitde808fdacbe1de18c6fdae6eecefd3b276b671fd (patch)
tree4fd32bc3f378cf9a35eb601ec5ec6b8df6efa73f /src/mame/drivers/avigo.cpp
parent779b26ebc3079badec82a02818c8f2d9741caea6 (diff)
-snapquik: Modernized delegate and removed MCFG macros. [Ryan Holtz]
Diffstat (limited to 'src/mame/drivers/avigo.cpp')
-rw-r--r--src/mame/drivers/avigo.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/avigo.cpp b/src/mame/drivers/avigo.cpp
index c9984604763..921f7ad68cf 100644
--- a/src/mame/drivers/avigo.cpp
+++ b/src/mame/drivers/avigo.cpp
@@ -694,7 +694,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(avigo_state::avigo_1hz_timer)
refresh_ints();
}
-QUICKLOAD_LOAD_MEMBER( avigo_state,avigo)
+QUICKLOAD_LOAD_MEMBER(avigo_state::quickload_cb)
{
const char *systemname = machine().system().name;
uint32_t first_app_page = (0x50000>>14);
@@ -749,7 +749,8 @@ void avigo_state::nvram_init(nvram_device &nvram, void *base, size_t size)
memset(base, 0x00, size);
}
-MACHINE_CONFIG_START(avigo_state::avigo)
+void avigo_state::avigo(machine_config &config)
+{
/* basic machine hardware */
Z80(config, m_maincpu, 4000000);
m_maincpu->set_addrmap(AS_PROGRAM, &avigo_state::avigo_mem);
@@ -811,8 +812,8 @@ MACHINE_CONFIG_START(avigo_state::avigo)
TIMER(config, "1hz_timer").configure_periodic(FUNC(avigo_state::avigo_1hz_timer), attotime::from_hz(1));
/* quickload */
- MCFG_QUICKLOAD_ADD("quickload", avigo_state, avigo, "app")
-MACHINE_CONFIG_END
+ QUICKLOAD(config, "quickload", "app").set_load_callback(FUNC(avigo_state::quickload_cb), this);
+}
/***************************************************************************