diff options
Diffstat (limited to 'src/mame/drivers/kopunch.cpp')
-rw-r--r-- | src/mame/drivers/kopunch.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/kopunch.cpp b/src/mame/drivers/kopunch.cpp index 27ecd5dd3ab..75aaaec88ee 100644 --- a/src/mame/drivers/kopunch.cpp +++ b/src/mame/drivers/kopunch.cpp @@ -234,35 +234,35 @@ void kopunch_state::machine_start() MACHINE_CONFIG_START(kopunch_state::kopunch) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", I8085A, 4000000) // 4 MHz? - MCFG_CPU_PROGRAM_MAP(kopunch_map) - MCFG_CPU_IO_MAP(kopunch_io_map) - MCFG_CPU_VBLANK_INT_DRIVER("screen", kopunch_state, vblank_interrupt) + MCFG_DEVICE_ADD("maincpu", I8085A, 4000000) // 4 MHz? + MCFG_DEVICE_PROGRAM_MAP(kopunch_map) + MCFG_DEVICE_IO_MAP(kopunch_io_map) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", kopunch_state, vblank_interrupt) MCFG_DEVICE_ADD("ppi8255_0", I8255A, 0) // $30 - always $9b (PPI mode 0, ports A & B & C as input) MCFG_I8255_IN_PORTA_CB(IOPORT("P1")) - MCFG_I8255_IN_PORTB_CB(READ8(kopunch_state, sensors1_r)) - MCFG_I8255_IN_PORTC_CB(READ8(kopunch_state, sensors2_r)) + MCFG_I8255_IN_PORTB_CB(READ8(*this, kopunch_state, sensors1_r)) + MCFG_I8255_IN_PORTC_CB(READ8(*this, kopunch_state, sensors2_r)) MCFG_DEVICE_ADD("ppi8255_1", I8255A, 0) // $34 - always $80 (PPI mode 0, ports A & B & C as output) - MCFG_I8255_OUT_PORTA_CB(WRITE8(kopunch_state, coin_w)) + MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, kopunch_state, coin_w)) MCFG_I8255_OUT_PORTB_CB(LOGGER("PPI8255 - unmapped write port B")) MCFG_I8255_OUT_PORTC_CB(LOGGER("PPI8255 - unmapped write port C")) MCFG_DEVICE_ADD("ppi8255_2", I8255A, 0) // $38 - always $89 (PPI mode 0, ports A & B as output, port C as input) - MCFG_I8255_OUT_PORTA_CB(WRITE8(kopunch_state, lamp_w)) + MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, kopunch_state, lamp_w)) MCFG_I8255_OUT_PORTB_CB(LOGGER("PPI8255 - unmapped write port B")) MCFG_I8255_IN_PORTC_CB(IOPORT("DSW")) MCFG_DEVICE_ADD("ppi8255_3", I8255A, 0) // $3c - always $88 (PPI mode 0, ports A & B & lower C as output, upper C as input) - MCFG_I8255_OUT_PORTA_CB(WRITE8(kopunch_state, scroll_x_w)) - MCFG_I8255_OUT_PORTB_CB(WRITE8(kopunch_state, scroll_y_w)) + MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, kopunch_state, scroll_x_w)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, kopunch_state, scroll_y_w)) MCFG_I8255_IN_PORTC_CB(IOPORT("P2")) - MCFG_I8255_OUT_PORTC_CB(WRITE8(kopunch_state, gfxbank_w)) + MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, kopunch_state, gfxbank_w)) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) |