summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tugboat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tugboat.cpp')
-rw-r--r--src/mame/drivers/tugboat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/tugboat.cpp b/src/mame/drivers/tugboat.cpp
index 92b0d26880a..607ee338e55 100644
--- a/src/mame/drivers/tugboat.cpp
+++ b/src/mame/drivers/tugboat.cpp
@@ -367,12 +367,12 @@ MACHINE_CONFIG_START(tugboat_state::tugboat)
MCFG_DEVICE_ADD("maincpu", M6502, 2000000) /* 2 MHz ???? */
MCFG_DEVICE_PROGRAM_MAP(main_map)
- MCFG_DEVICE_ADD("pia0", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(*this, tugboat_state,input_r))
+ pia6821_device &pia0(PIA6821(config, "pia0", 0));
+ pia0.readpa_handler().set(FUNC(tugboat_state::input_r));
- MCFG_DEVICE_ADD("pia1", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(IOPORT("DSW"))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, tugboat_state, ctrl_w))
+ pia6821_device &pia1(PIA6821(config, "pia1", 0));
+ pia1.readpa_handler().set_ioport("DSW");
+ pia1.writepb_handler().set(FUNC(tugboat_state::ctrl_w));
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)