summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/st_mp100.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/st_mp100.cpp')
-rw-r--r--src/mame/drivers/st_mp100.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/st_mp100.cpp b/src/mame/drivers/st_mp100.cpp
index 5ab595b9bf4..71cab0e0472 100644
--- a/src/mame/drivers/st_mp100.cpp
+++ b/src/mame/drivers/st_mp100.cpp
@@ -708,8 +708,8 @@ TIMER_DEVICE_CALLBACK_MEMBER( st_mp100_state::u11_timer )
MACHINE_CONFIG_START(st_mp100_state::st_mp100)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6800, 1000000) // no xtal, just 2 chips forming a random oscillator
- MCFG_CPU_PROGRAM_MAP(st_mp100_map)
+ MCFG_DEVICE_ADD("maincpu", M6800, 1000000) // no xtal, just 2 chips forming a random oscillator
+ MCFG_DEVICE_PROGRAM_MAP(st_mp100_map)
MCFG_NVRAM_ADD_0FILL("nvram")
@@ -721,22 +721,22 @@ MACHINE_CONFIG_START(st_mp100_state::st_mp100)
/* Devices */
MCFG_DEVICE_ADD("pia_u10", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(st_mp100_state, u10_a_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(st_mp100_state, u10_a_w))
- MCFG_PIA_READPB_HANDLER(READ8(st_mp100_state, u10_b_r))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(st_mp100_state, u10_b_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(st_mp100_state, u10_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(st_mp100_state, u10_cb2_w))
+ MCFG_PIA_READPA_HANDLER(READ8(*this, st_mp100_state, u10_a_r))
+ MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, st_mp100_state, u10_a_w))
+ MCFG_PIA_READPB_HANDLER(READ8(*this, st_mp100_state, u10_b_r))
+ MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, st_mp100_state, u10_b_w))
+ MCFG_PIA_CA2_HANDLER(WRITELINE(*this, st_mp100_state, u10_ca2_w))
+ MCFG_PIA_CB2_HANDLER(WRITELINE(*this, st_mp100_state, u10_cb2_w))
MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_x", st_mp100_state, timer_x, attotime::from_hz(120)) // mains freq*2
MCFG_DEVICE_ADD("pia_u11", PIA6821, 0)
- MCFG_PIA_READPA_HANDLER(READ8(st_mp100_state, u11_a_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(st_mp100_state, u11_a_w))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(st_mp100_state, u11_b_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(st_mp100_state, u11_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(st_mp100_state, u11_cb2_w))
+ MCFG_PIA_READPA_HANDLER(READ8(*this, st_mp100_state, u11_a_r))
+ MCFG_PIA_WRITEPA_HANDLER(WRITE8(*this, st_mp100_state, u11_a_w))
+ MCFG_PIA_WRITEPB_HANDLER(WRITE8(*this, st_mp100_state, u11_b_w))
+ MCFG_PIA_CA2_HANDLER(WRITELINE(*this, st_mp100_state, u11_ca2_w))
+ MCFG_PIA_CB2_HANDLER(WRITELINE(*this, st_mp100_state, u11_cb2_w))
MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6800_IRQ_LINE))
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_d", st_mp100_state, u11_timer, attotime::from_hz(634)) // 555 timer*2