diff options
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 |
commit | 62af3e0b1c1a4ad03cb394eba7d24416bf762c33 (patch) | |
tree | 3c97d68dfa656f37799e7eaf4ee481b10a066cd5 /src/devices/bus/snes/bsx.cpp | |
parent | d9130865c6d05c1c9a46d8ef7782a81e0167d3c1 (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.cpp | 21 |
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); +} /*------------------------------------------------- |