diff options
Diffstat (limited to 'src/mame/drivers/junior.cpp')
-rw-r--r-- | src/mame/drivers/junior.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/junior.cpp b/src/mame/drivers/junior.cpp index 708b2af7790..3bc5057fe01 100644 --- a/src/mame/drivers/junior.cpp +++ b/src/mame/drivers/junior.cpp @@ -228,8 +228,8 @@ void junior_state::machine_reset() MACHINE_CONFIG_START(junior_state::junior) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu",M6502, 1_MHz_XTAL) - MCFG_CPU_PROGRAM_MAP(junior_mem) + MCFG_DEVICE_ADD("maincpu",M6502, 1_MHz_XTAL) + MCFG_DEVICE_PROGRAM_MAP(junior_mem) MCFG_QUANTUM_TIME(attotime::from_hz(50)) /* video hardware */ @@ -237,10 +237,10 @@ MACHINE_CONFIG_START(junior_state::junior) /* Devices */ MCFG_DEVICE_ADD("riot", MOS6532_NEW, 1_MHz_XTAL) - MCFG_MOS6530n_IN_PA_CB(READ8(junior_state, junior_riot_a_r)) - MCFG_MOS6530n_OUT_PA_CB(WRITE8(junior_state, junior_riot_a_w)) - MCFG_MOS6530n_IN_PB_CB(READ8(junior_state, junior_riot_b_r)) - MCFG_MOS6530n_OUT_PB_CB(WRITE8(junior_state, junior_riot_b_w)) + MCFG_MOS6530n_IN_PA_CB(READ8(*this, junior_state, junior_riot_a_r)) + MCFG_MOS6530n_OUT_PA_CB(WRITE8(*this, junior_state, junior_riot_a_w)) + MCFG_MOS6530n_IN_PB_CB(READ8(*this, junior_state, junior_riot_b_r)) + MCFG_MOS6530n_OUT_PB_CB(WRITE8(*this, junior_state, junior_riot_b_w)) MCFG_MOS6530n_IRQ_CB(INPUTLINE("maincpu", M6502_IRQ_LINE)) MCFG_TIMER_DRIVER_ADD_PERIODIC("led_timer", junior_state, junior_update_leds, attotime::from_hz(50)) |