summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ampro.cpp
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2018-05-16 09:37:54 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-05-16 11:58:08 +0200
commitc83e2a853d4e1643fcc85b68ada3c6f7f33adea4 (patch)
tree39b249e1a0a9b2056e9815d0a284fd483338362c /src/mame/drivers/ampro.cpp
parent2242ff00893a83a113150609bd525f098d632e8d (diff)
- Removed MACHINE/SOUND/VIDEO _START/_RESET macros. This has the side effect of making machine-config overrides of these much
uglier, but this is intended to discourage ongoing use, and will be gradually eliminated.
Diffstat (limited to 'src/mame/drivers/ampro.cpp')
-rw-r--r--src/mame/drivers/ampro.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/ampro.cpp b/src/mame/drivers/ampro.cpp
index 8aa098b91b2..0239e7a9590 100644
--- a/src/mame/drivers/ampro.cpp
+++ b/src/mame/drivers/ampro.cpp
@@ -45,7 +45,7 @@ public:
{ }
void init_ampro();
- DECLARE_MACHINE_RESET(ampro);
+ void machine_reset_ampro();
TIMER_DEVICE_CALLBACK_MEMBER(ctc_tick);
DECLARE_WRITE8_MEMBER(port00_w);
DECLARE_READ8_MEMBER(io_r);
@@ -134,7 +134,7 @@ static void ampro_floppies(device_slot_interface &device)
static INPUT_PORTS_START( ampro )
INPUT_PORTS_END
-MACHINE_RESET_MEMBER( ampro_state, ampro )
+void ampro_state::machine_reset_ampro()
{
membank("bankr0")->set_entry(0); // point at rom
membank("bankw0")->set_entry(0); // always write to ram
@@ -155,7 +155,7 @@ MACHINE_CONFIG_START(ampro_state::ampro)
MCFG_DEVICE_PROGRAM_MAP(ampro_mem)
MCFG_DEVICE_IO_MAP(ampro_io)
MCFG_Z80_DAISY_CHAIN(daisy_chain_intf)
- MCFG_MACHINE_RESET_OVERRIDE(ampro_state, ampro)
+ set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_ampro, this));
MCFG_DEVICE_ADD("ctc_clock", CLOCK, XTAL(16'000'000) / 8) // 2MHz
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE("ctc", z80ctc_device, trg0))