diff options
author | Fabio Priuli <etabeta78@users.noreply.github.com> | 2014-04-28 18:41:16 +0000 |
---|---|---|
committer | Fabio Priuli <etabeta78@users.noreply.github.com> | 2014-04-28 18:41:16 +0000 |
commit | 25b6f6a58d889f49ee46e60415af95b91bfb47e4 (patch) | |
tree | 8cf9661d917d6f8f314a3e1ebdc1233d9bdc1899 /src/mess/drivers/ampro.c | |
parent | 8cb2897cc1ae6341b4bf30914042d847c4d21f84 (diff) |
z80ctc: converted to use devcb2. nw.
Notes:
- for whatever reason the tlcs_z80 internal CTC fails to recognize/find its owner tag,
does anyone know how to fix this? it's probably trivial, but I need an helping hand
or pve500 cannot be launched anymore...
- @Haze: can you check your inder_sb.c code? your CTC interface was wrong,
judging from the comments in the source (the first cb was for the interrupt, and no
callback was present by default for the ZC/TO3...) and I'm not sure what the code is
intended to actually do
Diffstat (limited to 'src/mess/drivers/ampro.c')
-rw-r--r-- | src/mess/drivers/ampro.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/mess/drivers/ampro.c b/src/mess/drivers/ampro.c index 7b2e3a6f27c..7bb247b03ac 100644 --- a/src/mess/drivers/ampro.c +++ b/src/mess/drivers/ampro.c @@ -155,14 +155,6 @@ WRITE_LINE_MEMBER( ampro_state::ctc_z0_w ) m_dart->txca_w(state); } -static Z80CTC_INTERFACE( ctc_intf ) -{ - DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), // interrupt callback - DEVCB_DRIVER_LINE_MEMBER(ampro_state, ctc_z0_w), /* ZC/TO0 callback - Z80DART Ch A, SIO Ch A */ - DEVCB_DEVICE_LINE_MEMBER("z80dart", z80dart_device, rxtxcb_w), /* ZC/TO1 callback - SIO Ch B */ - DEVCB_NULL /* ZC/TO2 callback */ -}; - static SLOT_INTERFACE_START( ampro_floppies ) SLOT_INTERFACE( "525dd", FLOPPY_525_DD ) SLOT_INTERFACE_END @@ -195,7 +187,11 @@ static MACHINE_CONFIG_START( ampro, ampro_state ) MCFG_MACHINE_RESET_OVERRIDE(ampro_state, ampro) /* Devices */ - MCFG_Z80CTC_ADD( "z80ctc", XTAL_16MHz / 4, ctc_intf ) + MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_16MHz / 4) + MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) + MCFG_Z80CTC_ZC0_CB(WRITELINE(ampro_state, ctc_z0_w)) // Z80DART Ch A, SIO Ch A + MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80dart", z80dart_device, rxtxcb_w)) // SIO Ch B + MCFG_Z80DART_ADD("z80dart", XTAL_16MHz / 4, dart_intf ) MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal") MCFG_RS232_RXD_HANDLER(DEVWRITELINE("z80dart", z80dart_device, rxa_w)) |