Previous 15994 Revisions Next

r12941 Monday 26th September, 2011 at 14:24:10 UTC by Curt Coder
[ABC1600] Implemented SCC interrupt and DART vector. (nw)
[src/emu/machine]z80dart.c z80dart.h
[src/mess/drivers]abc1600.c

src/emu/machine/z80dart.c
r12940r12941
422422}
423423
424424
425//-------------------------------------------------
426//  m1_r - interrupt acknowledge
427//-------------------------------------------------
425428
429int z80dart_device::m1_r()
430{
431   return z80daisy_irq_ack();
432}
433
434
435
426436//**************************************************************************
427437//  DART CHANNEL
428438//**************************************************************************
src/emu/machine/z80dart.h
r12940r12941
195195   // put data on the input lines
196196   void receive_data(int which, UINT8 data) { m_channel[which].receive_data(data); }
197197
198   // interrupt acknowledge
199   int m1_r();
200
198201   // control line access
199202   void cts_w(int which, int state) { m_channel[which].cts_w(state); }
200203   void dcd_w(int which, int state) { m_channel[which].dcd_w(state); }
src/mess/drivers/abc1600.c
r12940r12941
1212
1313    - keyboard
1414        - "Bad command" on first enter after boot
15      - expose Z80DART interrupt acknowledge function
1615    - floppy
1716        - internal floppy is really drive 2, but wd17xx.c doesn't like having NULL drives
1817      - mf: timeout several times while loading abcenix
1918    - BUS0I/0X/1/2
2019    - short/long reset (RSTBUT)
21    - SCC interrupt
2220    - CIO
2321        - vectored interrupts with status
2422        - port A bit mode, OR-PEVM, interrupt when bit=1
r12940r12941
12731271
12741272
12751273//-------------------------------------------------
1274//  SCC8530_INTERFACE( sc_intf )
1275//-------------------------------------------------
1276
1277static void scc_irq(device_t *device, int status)
1278{
1279   abc1600_state *state = device->machine().driver_data<abc1600_state>();
1280
1281   state->m_maincpu->set_input_line(M68K_IRQ_5, status);
1282}
1283
1284
1285//-------------------------------------------------
12761286//  Z8536_INTERFACE( cio_intf )
12771287//-------------------------------------------------
12781288
r12940r12941
14831493      break;
14841494     
14851495   case M68K_IRQ_5:
1486      //data = state->m_dart->z80daisy_irq_ack();
1496      data = state->m_dart->m1_r();
14871497      break;
14881498   }
14891499
r12940r12941
15711581   MCFG_Z80DMA_ADD(Z8410AB1_2_TAG, XTAL_64MHz/16, dma2_intf)
15721582   MCFG_Z80DART_ADD(Z8470AB1_TAG, XTAL_64MHz/16, dart_intf)
15731583   MCFG_SCC8530_ADD(Z8530B1_TAG, XTAL_64MHz/16)
1584   MCFG_SCC8530_IRQ(scc_irq)
15741585   MCFG_Z8536_ADD(Z8536B1_TAG, XTAL_64MHz/16, cio_intf)
15751586   MCFG_NMC9306_ADD(NMC9306_TAG)
15761587   MCFG_E0516_ADD(E050_C16PC_TAG, XTAL_32_768kHz)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team