diff options
Diffstat (limited to 'src/mame/drivers/othunder.cpp')
-rw-r--r-- | src/mame/drivers/othunder.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/othunder.cpp b/src/mame/drivers/othunder.cpp index 1efab164363..e80b180e7a0 100644 --- a/src/mame/drivers/othunder.cpp +++ b/src/mame/drivers/othunder.cpp @@ -607,16 +607,16 @@ void othunder_state::machine_start() MACHINE_CONFIG_START(othunder_state::othunder) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", M68000, 24_MHz_XTAL/2) - MCFG_CPU_PROGRAM_MAP(othunder_map) + MCFG_DEVICE_ADD("maincpu", M68000, 24_MHz_XTAL/2) + MCFG_DEVICE_PROGRAM_MAP(othunder_map) - MCFG_CPU_ADD("audiocpu", Z80, 16_MHz_XTAL/2/2) - MCFG_CPU_PROGRAM_MAP(z80_sound_map) + MCFG_DEVICE_ADD("audiocpu", Z80, 16_MHz_XTAL/2/2) + MCFG_DEVICE_PROGRAM_MAP(z80_sound_map) MCFG_EEPROM_SERIAL_93C46_ADD("eeprom") MCFG_DEVICE_ADD("adc", ADC0808, 16_MHz_XTAL/2/2/8) - MCFG_ADC0808_EOC_CB(WRITELINE(othunder_state, adc_eoc_w)) + MCFG_ADC0808_EOC_CB(WRITELINE(*this, othunder_state, adc_eoc_w)) MCFG_ADC0808_IN0_CB(IOPORT("P1X")) MCFG_ADC0808_IN1_CB(IOPORT("P1Y")) MCFG_ADC0808_IN2_CB(IOPORT("P2X")) @@ -626,9 +626,9 @@ MACHINE_CONFIG_START(othunder_state::othunder) MCFG_TC0220IOC_READ_0_CB(IOPORT("DSWA")) MCFG_TC0220IOC_READ_1_CB(IOPORT("DSWB")) MCFG_TC0220IOC_READ_2_CB(IOPORT("IN0")) - MCFG_TC0220IOC_READ_3_CB(DEVREADLINE("eeprom", eeprom_serial_93cxx_device, do_read)) MCFG_DEVCB_BIT(7) - MCFG_TC0220IOC_WRITE_3_CB(WRITE8(othunder_state, eeprom_w)) - MCFG_TC0220IOC_WRITE_4_CB(WRITE8(othunder_state, coins_w)) + MCFG_TC0220IOC_READ_3_CB(READLINE("eeprom", eeprom_serial_93cxx_device, do_read)) MCFG_DEVCB_BIT(7) + MCFG_TC0220IOC_WRITE_3_CB(WRITE8(*this, othunder_state, eeprom_w)) + MCFG_TC0220IOC_WRITE_4_CB(WRITE8(*this, othunder_state, coins_w)) MCFG_TC0220IOC_READ_7_CB(IOPORT("IN2")) /* video hardware */ @@ -639,7 +639,7 @@ MACHINE_CONFIG_START(othunder_state::othunder) MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) MCFG_SCREEN_UPDATE_DRIVER(othunder_state, screen_update) MCFG_SCREEN_PALETTE("palette") - MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(othunder_state, vblank_w)) + MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, othunder_state, vblank_w)) MCFG_GFXDECODE_ADD("gfxdecode", "palette", othunder) MCFG_PALETTE_ADD("palette", 4096) @@ -657,7 +657,7 @@ MACHINE_CONFIG_START(othunder_state::othunder) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("speaker") - MCFG_SOUND_ADD("ymsnd", YM2610, 16000000/2) + MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) MCFG_SOUND_ROUTE(0, "2610.0l", 0.25) MCFG_SOUND_ROUTE(0, "2610.0r", 0.25) |