summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/snes/bsx.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-12-09 10:58:05 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-12-09 11:00:30 -0500
commit62af3e0b1c1a4ad03cb394eba7d24416bf762c33 (patch)
tree3c97d68dfa656f37799e7eaf4ee481b10a066cd5 /src/devices/bus/snes/bsx.cpp
parentd9130865c6d05c1c9a46d8ef7782a81e0167d3c1 (diff)
SNES cartridge/clock refinements (nw)
- Eliminate MCFG macros - Use callback for cartridge IRQ - Clock cartridge slot and PPU at MCLK - Derive SuperFX clock from configured MCLK
Diffstat (limited to 'src/devices/bus/snes/bsx.cpp')
-rw-r--r--src/devices/bus/snes/bsx.cpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/devices/bus/snes/bsx.cpp b/src/devices/bus/snes/bsx.cpp
index 339cee19885..1f6efc1af6c 100644
--- a/src/devices/bus/snes/bsx.cpp
+++ b/src/devices/bus/snes/bsx.cpp
@@ -244,17 +244,20 @@ static void bsx_cart(device_slot_interface &device)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(sns_rom_bsx_device::device_add_mconfig)
- MCFG_SNS_BSX_CARTRIDGE_ADD("bs_slot", bsx_cart, nullptr)
-MACHINE_CONFIG_END
+void sns_rom_bsx_device::device_add_mconfig(machine_config &config)
+{
+ SNS_BSX_CART_SLOT(config, m_slot, bsx_cart, nullptr);
+}
-MACHINE_CONFIG_START(sns_rom_bsxlo_device::device_add_mconfig)
- MCFG_SNS_BSX_CARTRIDGE_ADD("bs_slot", bsx_cart, nullptr)
-MACHINE_CONFIG_END
+void sns_rom_bsxlo_device::device_add_mconfig(machine_config &config)
+{
+ SNS_BSX_CART_SLOT(config, m_slot, bsx_cart, nullptr);
+}
-MACHINE_CONFIG_START(sns_rom_bsxhi_device::device_add_mconfig)
- MCFG_SNS_BSX_CARTRIDGE_ADD("bs_slot", bsx_cart, nullptr)
-MACHINE_CONFIG_END
+void sns_rom_bsxhi_device::device_add_mconfig(machine_config &config)
+{
+ SNS_BSX_CART_SLOT(config, m_slot, bsx_cart, nullptr);
+}
/*-------------------------------------------------