summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/megaphx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/megaphx.cpp')
-rw-r--r--src/mame/drivers/megaphx.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/megaphx.cpp b/src/mame/drivers/megaphx.cpp
index f14d0598218..7ffa1018263 100644
--- a/src/mame/drivers/megaphx.cpp
+++ b/src/mame/drivers/megaphx.cpp
@@ -374,30 +374,30 @@ WRITE_LINE_MEMBER( megaphx_state::dsw_w )
}
MACHINE_CONFIG_START(megaphx_state::megaphx)
- MCFG_CPU_ADD("maincpu", M68000, 16_MHz_XTAL / 2)
- MCFG_CPU_PROGRAM_MAP(megaphx_68k_map)
+ MCFG_DEVICE_ADD("maincpu", M68000, 16_MHz_XTAL / 2)
+ MCFG_DEVICE_PROGRAM_MAP(megaphx_68k_map)
- MCFG_CPU_ADD("pic", PIC16C54, 6_MHz_XTAL) // correct?
- MCFG_PIC16C5x_READ_A_CB(READ8(megaphx_state, pic_porta_r))
- MCFG_PIC16C5x_WRITE_A_CB(WRITE8(megaphx_state, pic_porta_w))
- MCFG_PIC16C5x_READ_B_CB(READ8(megaphx_state, pic_portb_r))
- MCFG_PIC16C5x_WRITE_B_CB(WRITE8(megaphx_state, pic_portb_w))
+ MCFG_DEVICE_ADD("pic", PIC16C54, 6_MHz_XTAL) // correct?
+ MCFG_PIC16C5x_READ_A_CB(READ8(*this, megaphx_state, pic_porta_r))
+ MCFG_PIC16C5x_WRITE_A_CB(WRITE8(*this, megaphx_state, pic_porta_w))
+ MCFG_PIC16C5x_READ_B_CB(READ8(*this, megaphx_state, pic_portb_r))
+ MCFG_PIC16C5x_WRITE_B_CB(WRITE8(*this, megaphx_state, pic_portb_w))
MCFG_QUANTUM_PERFECT_CPU("maincpu")
MCFG_TTL166_ADD("ttl166_1")
MCFG_TTL166_DATA_CB(IOPORT("DSW1"))
- MCFG_TTL166_QH_CB(DEVWRITELINE("ttl166_2", ttl166_device, serial_w))
+ MCFG_TTL166_QH_CB(WRITELINE("ttl166_2", ttl166_device, serial_w))
MCFG_TTL166_ADD("ttl166_2")
MCFG_TTL166_DATA_CB(IOPORT("DSW2"))
- MCFG_TTL166_QH_CB(WRITELINE(megaphx_state, dsw_w))
+ MCFG_TTL166_QH_CB(WRITELINE(*this, megaphx_state, dsw_w))
MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0)
MCFG_I8255_IN_PORTA_CB(IOPORT("P1"))
MCFG_I8255_IN_PORTB_CB(IOPORT("P2"))
- MCFG_I8255_IN_PORTC_CB(READ8(megaphx_state, ppi_portc_r))
- MCFG_I8255_OUT_PORTC_CB(WRITE8(megaphx_state, ppi_portc_w))
+ MCFG_I8255_IN_PORTC_CB(READ8(*this, megaphx_state, ppi_portc_r))
+ MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, megaphx_state, ppi_portc_w))
MCFG_INDER_VIDEO_ADD("inder_vid")