summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/mycom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/mycom.cpp')
-rw-r--r--src/mame/drivers/mycom.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/mycom.cpp b/src/mame/drivers/mycom.cpp
index 2dd1a851df5..211fb77aeb0 100644
--- a/src/mame/drivers/mycom.cpp
+++ b/src/mame/drivers/mycom.cpp
@@ -505,24 +505,24 @@ DRIVER_INIT_MEMBER(mycom_state,mycom)
MACHINE_CONFIG_START(mycom_state::mycom)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80, XTAL(10'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(mycom_map)
- MCFG_CPU_IO_MAP(mycom_io)
+ MCFG_DEVICE_ADD("maincpu",Z80, XTAL(10'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(mycom_map)
+ MCFG_DEVICE_IO_MAP(mycom_io)
MCFG_DEVICE_ADD("ppi8255_0", I8255, 0)
- MCFG_I8255_OUT_PORTA_CB(WRITE8(mycom_state, mycom_04_w))
- MCFG_I8255_IN_PORTB_CB(READ8(mycom_state, mycom_05_r))
- MCFG_I8255_IN_PORTC_CB(READ8(mycom_state, mycom_06_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(mycom_state, mycom_06_w))
+ MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, mycom_state, mycom_04_w))
+ MCFG_I8255_IN_PORTB_CB(READ8(*this, mycom_state, mycom_05_r))
+ MCFG_I8255_IN_PORTC_CB(READ8(*this, mycom_state, mycom_06_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, mycom_state, mycom_06_w))
MCFG_DEVICE_ADD("ppi8255_1", I8255, 0)
- MCFG_I8255_IN_PORTA_CB(READ8(mycom_state, mycom_08_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(mycom_state, mycom_0a_w))
+ MCFG_I8255_IN_PORTA_CB(READ8(*this, mycom_state, mycom_08_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, mycom_state, mycom_0a_w))
MCFG_DEVICE_ADD("ppi8255_2", I8255, 0)
- MCFG_I8255_IN_PORTB_CB(DEVREAD8("rtc", msm5832_device, data_r))
- MCFG_I8255_OUT_PORTB_CB(DEVWRITE8("rtc", msm5832_device, data_w))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(mycom_state, mycom_rtc_w))
+ MCFG_I8255_IN_PORTB_CB(READ8("rtc", msm5832_device, data_r))
+ MCFG_I8255_OUT_PORTB_CB(WRITE8("rtc", msm5832_device, data_w))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, mycom_state, mycom_rtc_w))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -546,7 +546,7 @@ MACHINE_CONFIG_START(mycom_state::mycom)
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.05)
- MCFG_SOUND_ADD("sn1", SN76489, XTAL(10'000'000) / 4)
+ MCFG_DEVICE_ADD("sn1", SN76489, XTAL(10'000'000) / 4)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.50)
/* Devices */