summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/fortecar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/fortecar.cpp')
-rw-r--r--src/mame/drivers/fortecar.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/fortecar.cpp b/src/mame/drivers/fortecar.cpp
index 2c11341325d..d91c84a6e86 100644
--- a/src/mame/drivers/fortecar.cpp
+++ b/src/mame/drivers/fortecar.cpp
@@ -682,9 +682,9 @@ void fortecar_state::machine_reset()
MACHINE_CONFIG_START(fortecar_state::fortecar)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, CPU_CLOCK) /* 3 MHz, measured */
- MCFG_CPU_PROGRAM_MAP(fortecar_map)
- MCFG_CPU_IO_MAP(fortecar_ports)
+ MCFG_DEVICE_ADD("maincpu", Z80, CPU_CLOCK) /* 3 MHz, measured */
+ MCFG_DEVICE_PROGRAM_MAP(fortecar_map)
+ MCFG_DEVICE_IO_MAP(fortecar_ports)
MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_TIME_INIT(attotime::from_msec(200)) /* guess */
@@ -708,8 +708,8 @@ MACHINE_CONFIG_START(fortecar_state::fortecar)
Serial Eprom connected to Port C */
MCFG_I8255_IN_PORTA_CB(IOPORT("SYSTEM"))
MCFG_I8255_IN_PORTB_CB(IOPORT("INPUT"))
- MCFG_I8255_IN_PORTC_CB(READ8(fortecar_state, ppi0_portc_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(fortecar_state, ppi0_portc_w))
+ MCFG_I8255_IN_PORTC_CB(READ8(*this, fortecar_state, ppi0_portc_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, fortecar_state, ppi0_portc_w))
MCFG_V3021_ADD("rtc")
@@ -724,9 +724,9 @@ MACHINE_CONFIG_START(fortecar_state::fortecar)
MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_SOUND_ADD("aysnd", AY8910, AY_CLOCK) /* 1.5 MHz, measured */
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(fortecar_state, ayporta_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(fortecar_state, ayportb_w))
+ MCFG_DEVICE_ADD("aysnd", AY8910, AY_CLOCK) /* 1.5 MHz, measured */
+ MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, fortecar_state, ayporta_w))
+ MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, fortecar_state, ayportb_w))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END