summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/ampro.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-12-22 22:05:13 +0000
committer smf- <smf-@users.noreply.github.com>2013-12-22 22:05:13 +0000
commit25b08cec6bd4f5ed88ed6eeef7e188fb0b17b9a3 (patch)
treed6b9d79cb951b2e626d475c839cff43e23c808dc /src/mess/drivers/ampro.c
parentf3a8aceab46339c55609fa80cef99c3ad4aa153f (diff)
replaced read rx callback in Z80DART (and clones) with a write handler, which allows multiple chips to be connected together without using glue methods. [smf]
Diffstat (limited to 'src/mess/drivers/ampro.c')
-rw-r--r--src/mess/drivers/ampro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/drivers/ampro.c b/src/mess/drivers/ampro.c
index 6e31c0e9468..a5f092eda72 100644
--- a/src/mess/drivers/ampro.c
+++ b/src/mess/drivers/ampro.c
@@ -122,14 +122,12 @@ static Z80DART_INTERFACE( dart_intf )
{
0, 0, 0, 0,
- DEVCB_DEVICE_LINE_MEMBER("rs232", serial_port_device, rx),
DEVCB_DEVICE_LINE_MEMBER("rs232", serial_port_device, tx),
DEVCB_DEVICE_LINE_MEMBER("rs232", rs232_port_device, dtr_w),
DEVCB_DEVICE_LINE_MEMBER("rs232", rs232_port_device, rts_w),
DEVCB_NULL,
DEVCB_NULL,
- DEVCB_NULL, // ChB in data
DEVCB_NULL, // out data
DEVCB_NULL, // DTR
DEVCB_NULL, // RTS
@@ -201,6 +199,8 @@ static MACHINE_CONFIG_START( ampro, ampro_state )
MCFG_Z80CTC_ADD( "z80ctc", XTAL_16MHz / 4, ctc_intf )
MCFG_Z80DART_ADD("z80dart", XTAL_16MHz / 4, dart_intf )
MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "serial_terminal")
+ MCFG_SERIAL_OUT_RX_HANDLER(DEVWRITELINE("z80dart", z80dart_device, rxa_w))
+
MCFG_TIMER_DRIVER_ADD_PERIODIC("ctc_tick", ampro_state, ctc_tick, attotime::from_hz(XTAL_16MHz / 8))
MCFG_WD1772x_ADD("fdc", XTAL_16MHz / 2)
MCFG_FLOPPY_DRIVE_ADD("fdc:0", ampro_floppies, "525dd", floppy_image_device::default_floppy_formats)