diff options
Diffstat (limited to 'src/devices/bus/a7800/rom.cpp')
-rw-r--r-- | src/devices/bus/a7800/rom.cpp | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/src/devices/bus/a7800/rom.cpp b/src/devices/bus/a7800/rom.cpp index ea646db2770..362902dbe51 100644 --- a/src/devices/bus/a7800/rom.cpp +++ b/src/devices/bus/a7800/rom.cpp @@ -244,12 +244,12 @@ WRITE8_MEMBER(a78_rom_pokey_device::write_40xx) } // TO DO: do we need a PAL variant?!? -MACHINE_CONFIG_START(a78_rom_pokey_device::device_add_mconfig) +void a78_rom_pokey_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "addon").front_center(); - MCFG_DEVICE_ADD("pokey", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "addon", 1.00); +} /*------------------------------------------------- @@ -342,12 +342,12 @@ WRITE8_MEMBER(a78_rom_sg_pokey_device::write_40xx) m_bank = data & m_bank_mask; } -MACHINE_CONFIG_START(a78_rom_sg_pokey_device::device_add_mconfig) +void a78_rom_sg_pokey_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "addon").front_center(); - MCFG_DEVICE_ADD("pokey", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "addon", 1.00); +} /*------------------------------------------------- @@ -497,34 +497,33 @@ WRITE8_MEMBER(a78_rom_act_device::write_40xx) // Machine configs for PCB variants with a POKEY at $0450 -MACHINE_CONFIG_START(a78_rom_p450_device::device_add_mconfig) +void a78_rom_p450_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "pokey_450").front_center(); - MCFG_DEVICE_ADD("pokey450", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "pokey_450", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey450, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "pokey_450", 1.00); +} -MACHINE_CONFIG_START(a78_rom_p450_pokey_device::device_add_mconfig) +void a78_rom_p450_pokey_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "addon").front_center(); - MCFG_DEVICE_ADD("pokey", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 1.00) + POKEY(config, m_pokey, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "addon", 1.00); - MCFG_DEVICE_ADD("pokey450", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey450, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "addon", 1.00); +} -MACHINE_CONFIG_START(a78_rom_p450_sg_ram_device::device_add_mconfig) +void a78_rom_p450_sg_ram_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "pokey_450").front_center(); - MCFG_DEVICE_ADD("pokey450", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "pokey_450", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey450, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "pokey_450", 1.00); +} -MACHINE_CONFIG_START(a78_rom_p450_sg9_device::device_add_mconfig) +void a78_rom_p450_sg9_device::device_add_mconfig(machine_config &config) +{ SPEAKER(config, "pokey_450").front_center(); - MCFG_DEVICE_ADD("pokey450", POKEY, XTAL(14'318'181)/8) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "pokey_450", 1.00) -MACHINE_CONFIG_END + POKEY(config, m_pokey450, XTAL(14'318'181)/8).add_route(ALL_OUTPUTS, "pokey_450", 1.00); +} |