diff options
Diffstat (limited to 'src/mame/drivers/sv8000.cpp')
-rw-r--r-- | src/mame/drivers/sv8000.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/sv8000.cpp b/src/mame/drivers/sv8000.cpp index aeaa8614df3..1494648dcde 100644 --- a/src/mame/drivers/sv8000.cpp +++ b/src/mame/drivers/sv8000.cpp @@ -377,33 +377,33 @@ READ8_MEMBER( sv8000_state::mc6847_videoram_r ) MACHINE_CONFIG_START(sv8000_state::sv8000) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu",Z80, XTAL(10'738'635)/3) /* Not verified */ - MCFG_CPU_PROGRAM_MAP(sv8000_mem) - MCFG_CPU_IO_MAP(sv8000_io) - MCFG_CPU_VBLANK_INT_DRIVER("screen", sv8000_state, irq0_line_hold) + MCFG_DEVICE_ADD("maincpu",Z80, XTAL(10'738'635)/3) /* Not verified */ + MCFG_DEVICE_PROGRAM_MAP(sv8000_mem) + MCFG_DEVICE_IO_MAP(sv8000_io) + MCFG_DEVICE_VBLANK_INT_DRIVER("screen", sv8000_state, irq0_line_hold) MCFG_DEVICE_ADD("i8255", I8255, 0) - MCFG_I8255_IN_PORTA_CB(READ8(sv8000_state, i8255_porta_r)) - MCFG_I8255_OUT_PORTA_CB(WRITE8(sv8000_state, i8255_porta_w)) - MCFG_I8255_IN_PORTB_CB(READ8(sv8000_state, i8255_portb_r)) - MCFG_I8255_OUT_PORTB_CB(WRITE8(sv8000_state, i8255_portb_w)) - MCFG_I8255_IN_PORTC_CB(READ8(sv8000_state, i8255_portc_r)) - MCFG_I8255_OUT_PORTC_CB(WRITE8(sv8000_state, i8255_portc_w)) + MCFG_I8255_IN_PORTA_CB(READ8(*this, sv8000_state, i8255_porta_r)) + MCFG_I8255_OUT_PORTA_CB(WRITE8(*this, sv8000_state, i8255_porta_w)) + MCFG_I8255_IN_PORTB_CB(READ8(*this, sv8000_state, i8255_portb_r)) + MCFG_I8255_OUT_PORTB_CB(WRITE8(*this, sv8000_state, i8255_portb_w)) + MCFG_I8255_IN_PORTC_CB(READ8(*this, sv8000_state, i8255_portc_r)) + MCFG_I8255_OUT_PORTC_CB(WRITE8(*this, sv8000_state, i8255_portc_w)) /* video hardware */ // S68047P - Unknown whether the internal or an external character rom is used MCFG_DEVICE_ADD("s68047p", S68047, XTAL(10'738'635)/3 ) // Clock not verified - MCFG_MC6847_INPUT_CALLBACK(READ8(sv8000_state, mc6847_videoram_r)) + MCFG_MC6847_INPUT_CALLBACK(READ8(*this, sv8000_state, mc6847_videoram_r)) MCFG_SCREEN_MC6847_NTSC_ADD("screen", "s68047p") /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") - MCFG_SOUND_ADD("ay8910", AY8910, XTAL(10'738'635)/3/2) /* Exact model and clock not verified */ - MCFG_AY8910_PORT_A_READ_CB(READ8(sv8000_state, ay_port_a_r)) - MCFG_AY8910_PORT_B_READ_CB(READ8(sv8000_state, ay_port_b_r)) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(sv8000_state, ay_port_a_w)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(sv8000_state, ay_port_b_w)) + MCFG_DEVICE_ADD("ay8910", AY8910, XTAL(10'738'635)/3/2) /* Exact model and clock not verified */ + MCFG_AY8910_PORT_A_READ_CB(READ8(*this, sv8000_state, ay_port_a_r)) + MCFG_AY8910_PORT_B_READ_CB(READ8(*this, sv8000_state, ay_port_b_r)) + MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, sv8000_state, ay_port_a_w)) + MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, sv8000_state, ay_port_b_w)) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) /* cartridge */ |