summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/toobin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/toobin.cpp')
-rw-r--r--src/mame/drivers/toobin.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/drivers/toobin.cpp b/src/mame/drivers/toobin.cpp
index 9680b31309d..3d20b1a0730 100644
--- a/src/mame/drivers/toobin.cpp
+++ b/src/mame/drivers/toobin.cpp
@@ -231,11 +231,12 @@ MACHINE_CONFIG_START(toobin_state::toobin)
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
- MCFG_ATARI_JSA_I_ADD("jsa", WRITELINE(*this, toobin_state, sound_int_write_line))
- MCFG_ATARI_JSA_TEST_PORT("FF9000", 12)
- MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
- MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
- MCFG_DEVICE_REMOVE("jsa:tms")
+ ATARI_JSA_I(config, m_jsa, 0);
+ m_jsa->main_int_cb().set(FUNC(toobin_state::sound_int_write_line));
+ m_jsa->test_read_cb().set_ioport("FF9000").bit(12);
+ m_jsa->add_route(0, "lspeaker", 1.0);
+ m_jsa->add_route(1, "rspeaker", 1.0);
+ config.device_remove("jsa:tms");
MACHINE_CONFIG_END