summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/marywu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/marywu.cpp')
-rw-r--r--src/mame/drivers/marywu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/marywu.cpp b/src/mame/drivers/marywu.cpp
index ee61ae6c1f9..00cac9256d4 100644
--- a/src/mame/drivers/marywu.cpp
+++ b/src/mame/drivers/marywu.cpp
@@ -194,10 +194,10 @@ MACHINE_CONFIG_START(marywu_state::marywu)
//TODO: figure out what each bit is mapped to in the 80c31 ports P1 and P3
/* Keyboard & display interface */
- MCFG_DEVICE_ADD("i8279", I8279, XTAL(10'738'635)) /* should it be perhaps a fraction of the XTAL clock ? */
- MCFG_I8279_OUT_SL_CB(WRITE8(*this, marywu_state, multiplex_7seg_w)) // select block of 7seg modules by multiplexing the SL scan lines
- MCFG_I8279_IN_RL_CB(READ8(*this, marywu_state, keyboard_r)) // keyboard Return Lines
- MCFG_I8279_OUT_DISP_CB(WRITE8(*this, marywu_state, display_7seg_data_w))
+ i8279_device &kbdc(I8279(config, "i8279", XTAL(10'738'635))); // should it be perhaps a fraction of the XTAL clock ?
+ kbdc.out_sl_callback().set(FUNC(marywu_state::multiplex_7seg_w)); // select block of 7seg modules by multiplexing the SL scan lines
+ kbdc.in_rl_callback().set(FUNC(marywu_state::keyboard_r)); // keyboard Return Lines
+ kbdc.out_disp_callback().set(FUNC(marywu_state::display_7seg_data_w));
/* Video */
config.set_default_layout(layout_marywu);