summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index d5d2871ce2a..84115a651df 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -300,11 +300,11 @@ DEVICE_INPUT_DEFAULTS_END
MACHINE_CONFIG_START(binbug_state::binbug)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",S2650, XTAL(1'000'000))
- MCFG_CPU_PROGRAM_MAP(binbug_mem)
- MCFG_CPU_DATA_MAP(binbug_data)
- MCFG_S2650_SENSE_INPUT(READLINE(binbug_state, binbug_serial_r))
- MCFG_S2650_FLAG_OUTPUT(WRITELINE(binbug_state, binbug_serial_w))
+ MCFG_DEVICE_ADD("maincpu",S2650, XTAL(1'000'000))
+ MCFG_DEVICE_PROGRAM_MAP(binbug_mem)
+ MCFG_DEVICE_DATA_MAP(binbug_data)
+ MCFG_S2650_SENSE_INPUT(READLINE(*this, binbug_state, binbug_serial_r))
+ MCFG_S2650_FLAG_OUTPUT(WRITELINE(*this, binbug_state, binbug_serial_w))
/* video hardware */
MCFG_SCREEN_ADD_MONOCHROME("screen", RASTER, rgb_t::amber())
@@ -319,7 +319,7 @@ MACHINE_CONFIG_START(binbug_state::binbug)
MCFG_PALETTE_ADD_MONOCHROME("palette")
/* Keyboard */
- MCFG_RS232_PORT_ADD("keyboard", default_rs232_devices, "keyboard")
+ MCFG_DEVICE_ADD("keyboard", RS232_PORT, default_rs232_devices, "keyboard")
MCFG_SLOT_OPTION_DEVICE_INPUT_DEFAULTS("keyboard", keyboard)
/* Cassette */
@@ -537,9 +537,9 @@ TIMER_DEVICE_CALLBACK_MEMBER(dg680_state::uart_tick)
MACHINE_CONFIG_START(dg680_state::dg680)
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu",Z80, XTAL(8'000'000) / 4)
- MCFG_CPU_PROGRAM_MAP(dg680_mem)
- MCFG_CPU_IO_MAP(dg680_io)
+ MCFG_DEVICE_ADD("maincpu",Z80, XTAL(8'000'000) / 4)
+ MCFG_DEVICE_PROGRAM_MAP(dg680_mem)
+ MCFG_DEVICE_IO_MAP(dg680_io)
MCFG_Z80_DAISY_CHAIN(dg680_daisy_chain)
/* video hardware */
@@ -567,14 +567,14 @@ MACHINE_CONFIG_START(dg680_state::dg680)
/* Devices */
MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL(8'000'000) / 4)
MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg1))
+ MCFG_Z80CTC_ZC0_CB(WRITELINE("z80ctc", z80ctc_device, trg1))
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL(8'000'000) / 4)
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0))
- MCFG_Z80PIO_IN_PA_CB(READ8(dg680_state, porta_r))
+ MCFG_Z80PIO_IN_PA_CB(READ8(*this, dg680_state, porta_r))
// OUT_ARDY - this activates to ask for kbd data but not known if actually used
- MCFG_Z80PIO_IN_PB_CB(READ8(dg680_state, portb_r))
- MCFG_Z80PIO_OUT_PB_CB(WRITE8(dg680_state, portb_w))
+ MCFG_Z80PIO_IN_PB_CB(READ8(*this, dg680_state, portb_r))
+ MCFG_Z80PIO_OUT_PB_CB(WRITE8(*this, dg680_state, portb_w))
MCFG_TIMER_DRIVER_ADD_PERIODIC("ctc0", dg680_state, time_tick, attotime::from_hz(200))
MCFG_TIMER_DRIVER_ADD_PERIODIC("ctc3", dg680_state, uart_tick, attotime::from_hz(4800))