summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/meyc8088.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2018-08-22 18:12:27 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2018-08-22 18:12:27 +0200
commitd1f7028027bac36a032a382846b1918ae6a837ce (patch)
tree0e04748d09eac41535ba841b69b6690e8096203b /src/mame/drivers/meyc8088.cpp
parentd8c4c128c8cbeb1359483571c4eba14411cdd6e4 (diff)
i8155.cpp: deMCFGfied (nw)
Diffstat (limited to 'src/mame/drivers/meyc8088.cpp')
-rw-r--r--src/mame/drivers/meyc8088.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/meyc8088.cpp b/src/mame/drivers/meyc8088.cpp
index 04610e5e222..78b09f77814 100644
--- a/src/mame/drivers/meyc8088.cpp
+++ b/src/mame/drivers/meyc8088.cpp
@@ -370,19 +370,19 @@ MACHINE_CONFIG_START(meyc8088_state::meyc8088)
MCFG_DEVICE_ADD(m_maincpu, I8088, (XTAL(15'000'000) / 3) * 0.95) // NOTE: underclocked to prevent errors on diagnostics, MAME i8088 cycle timing is probably inaccurate
MCFG_DEVICE_PROGRAM_MAP(meyc8088_map)
- MCFG_DEVICE_ADD("i8155_1", I8155, XTAL(15'000'000) / (3*1))
+ i8155_device &i8155_1(I8155(config, "i8155_1", XTAL(15'000'000) / (3*1)));
// all ports set to input
- MCFG_I8155_IN_PORTA_CB(READ8(*this, meyc8088_state, input_r))
- MCFG_I8155_IN_PORTB_CB(IOPORT("SW"))
- MCFG_I8155_IN_PORTC_CB(READ8(*this, meyc8088_state, status_r))
+ i8155_1.in_pa_callback().set(FUNC(meyc8088_state::input_r));
+ i8155_1.in_pb_callback().set_ioport("SW");
+ i8155_1.in_pc_callback().set(FUNC(meyc8088_state::status_r));
// i8251A trigger txc/rxc (debug related, unpopulated on sold boards)
- MCFG_DEVICE_ADD("i8155_2", I8155, XTAL(15'000'000) / (3*32))
+ i8155_device &i8155_2(I8155(config, "i8155_2", XTAL(15'000'000) / (3*32)));
// all ports set to output
- MCFG_I8155_OUT_PORTA_CB(WRITE8(*this, meyc8088_state, lights2_w))
- MCFG_I8155_OUT_PORTB_CB(WRITE8(*this, meyc8088_state, lights1_w))
- MCFG_I8155_OUT_PORTC_CB(WRITE8(*this, meyc8088_state, common_w))
- MCFG_I8155_OUT_TIMEROUT_CB(WRITELINE("dac", dac_bit_interface, write))
+ i8155_2.out_pa_callback().set(FUNC(meyc8088_state::lights2_w));
+ i8155_2.out_pb_callback().set(FUNC(meyc8088_state::lights1_w));
+ i8155_2.out_pc_callback().set(FUNC(meyc8088_state::common_w));
+ i8155_2.out_to_callback().set("dac", FUNC(dac_bit_interface::write));
MCFG_NVRAM_ADD_0FILL("nvram")