summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/ac1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ac1.cpp')
-rw-r--r--src/mame/drivers/ac1.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/ac1.cpp b/src/mame/drivers/ac1.cpp
index 8d2b1862685..d4d23f6f96d 100644
--- a/src/mame/drivers/ac1.cpp
+++ b/src/mame/drivers/ac1.cpp
@@ -131,15 +131,15 @@ INPUT_PORTS_END
/* Machine driver */
MACHINE_CONFIG_START(ac1_state::ac1)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", Z80, XTAL(8'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(ac1_mem)
- MCFG_CPU_IO_MAP(ac1_io)
+ MCFG_DEVICE_ADD("maincpu", Z80, XTAL(8'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(ac1_mem)
+ MCFG_DEVICE_IO_MAP(ac1_io)
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL(8'000'000) / 4)
- MCFG_Z80PIO_IN_PA_CB(READ8(ac1_state, ac1_port_a_r))
- MCFG_Z80PIO_OUT_PA_CB(WRITE8(ac1_state, ac1_port_a_w))
- MCFG_Z80PIO_IN_PB_CB(READ8(ac1_state, ac1_port_b_r))
- MCFG_Z80PIO_OUT_PB_CB(WRITE8(ac1_state, ac1_port_b_w))
+ MCFG_Z80PIO_IN_PA_CB(READ8(*this, ac1_state, ac1_port_a_r))
+ MCFG_Z80PIO_OUT_PA_CB(WRITE8(*this, ac1_state, ac1_port_a_w))
+ MCFG_Z80PIO_IN_PB_CB(READ8(*this, ac1_state, ac1_port_b_r))
+ MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, ac1_state, ac1_port_b_w))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@@ -164,8 +164,8 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(ac1_state::ac1_32)
ac1(config);
- MCFG_CPU_MODIFY("maincpu")
- MCFG_CPU_PROGRAM_MAP(ac1_32_mem)
+ MCFG_DEVICE_MODIFY("maincpu")
+ MCFG_DEVICE_PROGRAM_MAP(ac1_32_mem)
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_SIZE(64*6, 32*8)