diff options
author | 2014-04-28 18:41:16 +0000 | |
---|---|---|
committer | 2014-04-28 18:41:16 +0000 | |
commit | 25b6f6a58d889f49ee46e60415af95b91bfb47e4 (patch) | |
tree | 8cf9661d917d6f8f314a3e1ebdc1233d9bdc1899 /src/mess/machine | |
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/machine')
-rw-r--r-- | src/mess/machine/llc.c | 20 | ||||
-rw-r--r-- | src/mess/machine/mc80.c | 25 |
2 files changed, 0 insertions, 45 deletions
diff --git a/src/mess/machine/llc.c b/src/mess/machine/llc.c index 67554030f57..5f8b19e7e7f 100644 --- a/src/mess/machine/llc.c +++ b/src/mess/machine/llc.c @@ -88,17 +88,6 @@ WRITE8_MEMBER(llc_state::llc1_port1_b_w) } } -// timer 0 irq does digit display, and timer 3 irq does scan of the -// monitor keyboard. -// No idea how the CTC is connected, so guessed. -Z80CTC_INTERFACE( llc1_ctc_intf ) -{ - DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), - DEVCB_DEVICE_LINE_MEMBER("z80ctc", z80ctc_device, trg1), - DEVCB_DEVICE_LINE_MEMBER("z80ctc", z80ctc_device, trg3), - DEVCB_NULL -}; - Z80PIO_INTERFACE( llc1_z80pio1_intf ) { DEVCB_NULL, /* callback when change interrupt status */ @@ -135,15 +124,6 @@ MACHINE_START_MEMBER(llc_state,llc1) { } -Z80CTC_INTERFACE( llc2_ctc_intf ) -{ - DEVCB_NULL, - DEVCB_NULL, - DEVCB_NULL, - DEVCB_NULL -}; - - /* Driver initialization */ DRIVER_INIT_MEMBER(llc_state,llc2) { diff --git a/src/mess/machine/mc80.c b/src/mess/machine/mc80.c index f4530f0067e..f7177838e1a 100644 --- a/src/mess/machine/mc80.c +++ b/src/mess/machine/mc80.c @@ -36,15 +36,6 @@ WRITE_LINE_MEMBER(mc80_state::ctc_z2_w) downcast<z80ctc_device *>(machine().device("z80ctc"))->trg1(state); } -Z80CTC_INTERFACE( mc8020_ctc_intf ) -{ - DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), - DEVCB_DRIVER_LINE_MEMBER(mc80_state, ctc_z0_w), - DEVCB_DRIVER_LINE_MEMBER(mc80_state, ctc_z1_w), - DEVCB_DRIVER_LINE_MEMBER(mc80_state,ctc_z2_w) -}; - - READ8_MEMBER( mc80_state::mc80_port_b_r ) { return 0; @@ -173,22 +164,6 @@ Z80PIO_INTERFACE( mc8030_asp_z80pio_intf ) DEVCB_NULL }; -Z80CTC_INTERFACE( mc8030_zve_z80ctc_intf ) -{ - DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), - DEVCB_NULL, // for user - DEVCB_NULL, // for user - DEVCB_NULL // for user -}; - -Z80CTC_INTERFACE( mc8030_asp_z80ctc_intf ) -{ - DEVCB_CPU_INPUT_LINE("maincpu", INPUT_LINE_IRQ0), - DEVCB_NULL, // to SIO CLK CH A - DEVCB_NULL, // to SIO CLK CH B - DEVCB_NULL // KMBG (??) -}; - // SIO CH A in = keyboard; out = beeper; CH B = IFSS (??) Z80SIO_INTERFACE( mc8030_asp_z80sio_intf ) { |