diff options
author | 2011-09-26 15:41:02 +0000 | |
---|---|---|
committer | 2011-09-26 15:41:02 +0000 | |
commit | 79d92d00a1e2b724ff22cbccee51381ccdcbbd77 (patch) | |
tree | 6d4ac140ff015db6d0a1f3a10eb7b6efaa7c0b5a /src/emu | |
parent | eb8cecdb9ba1607245b1d4dbbc75413fdce18664 (diff) |
Exposed the Z80 DART interrupt vector to non-Z80 users. [Curt Coder]
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/machine/z80dart.c | 10 | ||||
-rw-r--r-- | src/emu/machine/z80dart.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/emu/machine/z80dart.c b/src/emu/machine/z80dart.c index e964cb4b5a2..c5998ac21de 100644 --- a/src/emu/machine/z80dart.c +++ b/src/emu/machine/z80dart.c @@ -422,6 +422,16 @@ void z80dart_device::take_interrupt(int priority) } +//------------------------------------------------- +// m1_r - interrupt acknowledge +//------------------------------------------------- + +int z80dart_device::m1_r() +{ + return z80daisy_irq_ack(); +} + + //************************************************************************** // DART CHANNEL diff --git a/src/emu/machine/z80dart.h b/src/emu/machine/z80dart.h index 805c9427f0d..de89be0e6c4 100644 --- a/src/emu/machine/z80dart.h +++ b/src/emu/machine/z80dart.h @@ -195,6 +195,9 @@ public: // put data on the input lines void receive_data(int which, UINT8 data) { m_channel[which].receive_data(data); } + // interrupt acknowledge + int m1_r(); + // control line access void cts_w(int which, int state) { m_channel[which].cts_w(state); } void dcd_w(int which, int state) { m_channel[which].dcd_w(state); } |