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/llc.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/llc.c')
-rw-r--r-- | src/mess/drivers/llc.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mess/drivers/llc.c b/src/mess/drivers/llc.c index fcdf707e87c..783f6d922bd 100644 --- a/src/mess/drivers/llc.c +++ b/src/mess/drivers/llc.c @@ -219,7 +219,15 @@ static MACHINE_CONFIG_START( llc1, llc_state ) MCFG_Z80PIO_ADD( "z80pio1", XTAL_3MHz, llc1_z80pio1_intf ) MCFG_Z80PIO_ADD( "z80pio2", XTAL_3MHz, llc1_z80pio2_intf ) - MCFG_Z80CTC_ADD( "z80ctc", XTAL_3MHz, llc1_ctc_intf ) + + MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_3MHz) + // 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. + MCFG_Z80CTC_INTR_CB(INPUTLINE("maincpu", INPUT_LINE_IRQ0)) + MCFG_Z80CTC_ZC0_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg1)) + MCFG_Z80CTC_ZC1_CB(DEVWRITELINE("z80ctc", z80ctc_device, trg3)) + MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0) MCFG_GENERIC_KEYBOARD_CB(WRITE8(llc_state, kbd_put)) MACHINE_CONFIG_END @@ -252,7 +260,9 @@ static MACHINE_CONFIG_START( llc2, llc_state ) MCFG_Z80PIO_ADD( "z80pio1", XTAL_3MHz, llc2_z80pio1_intf ) MCFG_Z80PIO_ADD( "z80pio2", XTAL_3MHz, llc2_z80pio2_intf ) - MCFG_Z80CTC_ADD( "z80ctc", XTAL_3MHz, llc2_ctc_intf ) + + MCFG_DEVICE_ADD("z80ctc", Z80CTC, XTAL_3MHz) + MCFG_K7659_KEYBOARD_ADD() /* internal ram */ |