diff options
Diffstat (limited to 'src/mame/drivers/piggypas.cpp')
-rw-r--r-- | src/mame/drivers/piggypas.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/piggypas.cpp b/src/mame/drivers/piggypas.cpp index 93eaf604116..daa1412cf80 100644 --- a/src/mame/drivers/piggypas.cpp +++ b/src/mame/drivers/piggypas.cpp @@ -203,13 +203,13 @@ HD44780_PIXEL_UPDATE(piggypas_state::piggypas_pixel_update) MACHINE_CONFIG_START(piggypas_state::piggypas) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", I80C31, XTAL(8'448'000)) // OKI M80C31F or M80C154S - MCFG_CPU_PROGRAM_MAP(piggypas_map) - MCFG_CPU_IO_MAP(piggypas_io) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(piggypas_state, led_strobe_w)) + MCFG_DEVICE_ADD("maincpu", I80C31, XTAL(8'448'000)) // OKI M80C31F or M80C154S + MCFG_DEVICE_PROGRAM_MAP(piggypas_map) + MCFG_DEVICE_IO_MAP(piggypas_io) + MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, piggypas_state, led_strobe_w)) MCFG_MCS51_PORT_P3_IN_CB(IOPORT("IN2")) - MCFG_MCS51_SERIAL_TX_CB(WRITE8(piggypas_state, mcs51_tx_callback)) -// MCFG_CPU_VBLANK_INT_DRIVER("screen", piggypas_state, irq0_line_hold) + MCFG_MCS51_SERIAL_TX_CB(WRITE8(*this, piggypas_state, mcs51_tx_callback)) +// MCFG_DEVICE_VBLANK_INT_DRIVER("screen", piggypas_state, irq0_line_hold) MCFG_NVRAM_ADD_0FILL("nvram") // DS1220AD @@ -235,7 +235,7 @@ MACHINE_CONFIG_START(piggypas_state::piggypas) MCFG_DEVICE_ADD("ppi", I8255A, 0) // OKI M82C55A-2 MCFG_I8255_IN_PORTA_CB(IOPORT("IN1")) - MCFG_I8255_OUT_PORTB_CB(WRITE8(piggypas_state, ctrl_w)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, piggypas_state, ctrl_w)) MCFG_I8255_IN_PORTC_CB(IOPORT("IN0")) MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(100), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH) @@ -244,12 +244,12 @@ MACHINE_CONFIG_END MACHINE_CONFIG_START(piggypas_state::fidlstix) piggypas(config); - MCFG_CPU_MODIFY("maincpu") - MCFG_CPU_IO_MAP(fidlstix_io) + MCFG_DEVICE_MODIFY("maincpu") + MCFG_DEVICE_IO_MAP(fidlstix_io) MCFG_MCS51_SERIAL_TX_CB(NOOP) - MCFG_MCS51_PORT_P1_IN_CB(READ8(piggypas_state, lcd_latch_r)) - MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(piggypas_state, lcd_latch_w)) - MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(piggypas_state, lcd_control_w)) + MCFG_MCS51_PORT_P1_IN_CB(READ8(*this, piggypas_state, lcd_latch_r)) + MCFG_MCS51_PORT_P1_OUT_CB(WRITE8(*this, piggypas_state, lcd_latch_w)) + MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, piggypas_state, lcd_control_w)) MACHINE_CONFIG_END |