summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/beta.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2019-06-30 15:07:35 +0200
committer MooglyGuy <therealmogminer@gmail.com>2019-06-30 15:08:18 +0200
commitfa9fe1a9046baa617897c0ae928d058d9dd7407f (patch)
tree45517718b9efc1a3ac2b0228cc7348a736ea3eb6 /src/mame/drivers/beta.cpp
parentde808fdacbe1de18c6fdae6eecefd3b276b671fd (diff)
-imagedev/harddriv: Removed MCFG macros. [Ryan Holtz]
-generic/slot: Removed MCFG macros. [Ryan Holtz]
Diffstat (limited to 'src/mame/drivers/beta.cpp')
-rw-r--r--src/mame/drivers/beta.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/beta.cpp b/src/mame/drivers/beta.cpp
index 45ad006e090..2413c7c4663 100644
--- a/src/mame/drivers/beta.cpp
+++ b/src/mame/drivers/beta.cpp
@@ -74,8 +74,8 @@ protected:
DECLARE_READ8_MEMBER( riot_pb_r );
DECLARE_WRITE8_MEMBER( riot_pb_w );
- DECLARE_DEVICE_IMAGE_LOAD_MEMBER( beta_eprom );
- DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER( beta_eprom );
+ DECLARE_DEVICE_IMAGE_LOAD_MEMBER(load_beta_eprom);
+ DECLARE_DEVICE_IMAGE_UNLOAD_MEMBER(unload_beta_eprom);
TIMER_CALLBACK_MEMBER(led_refresh);
@@ -291,7 +291,7 @@ WRITE8_MEMBER( beta_state::riot_pb_w )
/* EPROM socket */
-DEVICE_IMAGE_LOAD_MEMBER( beta_state, beta_eprom )
+DEVICE_IMAGE_LOAD_MEMBER(beta_state::load_beta_eprom)
{
uint32_t size = m_eprom->common_get_size("rom");
@@ -307,7 +307,7 @@ DEVICE_IMAGE_LOAD_MEMBER( beta_state, beta_eprom )
return image_init_result::PASS;
}
-DEVICE_IMAGE_UNLOAD_MEMBER( beta_state, beta_eprom )
+DEVICE_IMAGE_UNLOAD_MEMBER(beta_state::unload_beta_eprom)
{
if (!image.loaded_through_softlist())
image.fwrite(&m_eprom_rom[0], 0x800);
@@ -345,7 +345,8 @@ void beta_state::machine_start()
/* Machine Driver */
-MACHINE_CONFIG_START(beta_state::beta)
+void beta_state::beta(machine_config &config)
+{
/* basic machine hardware */
M6502(config, m_maincpu, XTAL(4'000'000)/4);
m_maincpu->set_addrmap(AS_PROGRAM, &beta_state::beta_mem);
@@ -366,14 +367,13 @@ MACHINE_CONFIG_START(beta_state::beta)
m6532.irq_wr_callback().set_inputline(m_maincpu, M6502_IRQ_LINE);
/* EPROM socket */
- MCFG_GENERIC_CARTSLOT_ADD(EPROM_TAG, generic_plain_slot, nullptr)
- MCFG_GENERIC_EXTENSIONS("bin,rom")
- MCFG_GENERIC_LOAD(beta_state, beta_eprom)
- MCFG_GENERIC_UNLOAD(beta_state, beta_eprom)
+ generic_cartslot_device &cartslot(GENERIC_CARTSLOT(config, EPROM_TAG, generic_plain_slot, nullptr, "bin,rom"));
+ cartslot.set_device_load(FUNC(beta_state::load_beta_eprom), this);
+ cartslot.set_device_unload(FUNC(beta_state::unload_beta_eprom), this);
/* internal ram */
RAM(config, RAM_TAG).set_default_size("256");
-MACHINE_CONFIG_END
+}
/* ROMs */