diff options
Diffstat (limited to 'src/devices/bus/snes/sfx.cpp')
-rw-r--r-- | src/devices/bus/snes/sfx.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/devices/bus/snes/sfx.cpp b/src/devices/bus/snes/sfx.cpp index b46750a9f81..9fd99ca53d5 100644 --- a/src/devices/bus/snes/sfx.cpp +++ b/src/devices/bus/snes/sfx.cpp @@ -86,11 +86,12 @@ WRITE_LINE_MEMBER(sns_rom_superfx_device::snes_extern_irq_w) } -MACHINE_CONFIG_START(sns_rom_superfx_device::device_add_mconfig) - MCFG_DEVICE_ADD("superfx", SUPERFX, 21480000) /* 21.48MHz */ - MCFG_DEVICE_PROGRAM_MAP(sfx_map) - MCFG_SUPERFX_OUT_IRQ(WRITELINE(*this, sns_rom_superfx_device, snes_extern_irq_w)) /* IRQ line from cart */ -MACHINE_CONFIG_END +void sns_rom_superfx_device::device_add_mconfig(machine_config &config) +{ + SUPERFX(config, m_superfx, 21480000); /* 21.48MHz */ + m_superfx->set_addrmap(AS_PROGRAM, &sns_rom_superfx_device::sfx_map); + m_superfx->irq().set(FUNC(sns_rom_superfx_device::snes_extern_irq_w)); /* IRQ line from cart */ +} READ8_MEMBER( sns_rom_superfx_device::chip_read ) { |