diff options
author | 2014-11-25 22:45:09 +0100 | |
---|---|---|
committer | 2014-11-25 22:45:09 +0100 | |
commit | 044f3688ac51e2db2625525416024e1f913c6e7a (patch) | |
tree | fa1ea1bb79aa5136b590fabd06bae5238c6edc47 /src/emu/bus/dmv/k230.h | |
parent | 5fcdaf0c9535f898b519ed1704c09a0ec500728e (diff) |
(MESS) dmv: added dipswitches to K235 for configure INT5 and INT7 source. (nw)
Diffstat (limited to 'src/emu/bus/dmv/k230.h')
-rw-r--r-- | src/emu/bus/dmv/k230.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/emu/bus/dmv/k230.h b/src/emu/bus/dmv/k230.h index 4660a3f5aba..6c658f2d2c3 100644 --- a/src/emu/bus/dmv/k230.h +++ b/src/emu/bus/dmv/k230.h @@ -115,22 +115,26 @@ public: // construction/destruction dmv_k235_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); +protected: // optional information overrides virtual const rom_entry *device_rom_region() const; virtual machine_config_constructor device_mconfig_additions() const; - - void irq0_w(int state) { m_pic->ir0_w(state); } - void irq1_w(int state) { m_pic->ir1_w(state); } - void irq2_w(int state) { m_pic->ir2_w(state); } - void irq3_w(int state) { m_pic->ir3_w(state); } - void irq4_w(int state) { m_pic->ir4_w(state); } - void irq5_w(int state) { m_pic->ir5_w(state); } - void irq6_w(int state) { m_pic->ir6_w(state); } - void irq7_w(int state) { m_pic->ir7_w(state); } + virtual ioport_constructor device_input_ports() const; + + void timint_w(int state) { m_pic->ir0_w(state); } + void keyint_w(int state) { m_pic->ir1_w(state); } + void busint_w(int state) { m_pic->ir2_w(state); } + void flexint_w(int state) { m_pic->ir6_w(state); } + void irq2a_w(int state) { if (!(m_dsw->read() & 0x02)) m_pic->ir5_w(state); } + void irq2_w(int state) { if ( (m_dsw->read() & 0x02)) m_pic->ir5_w(state); } + void irq3_w(int state) { m_pic->ir3_w(state); } + void irq4_w(int state) { m_pic->ir4_w(state); } + void irq5_w(int state) { if (!(m_dsw->read() & 0x01)) m_pic->ir7_w(state); } + void irq6_w(int state) { if ( (m_dsw->read() & 0x01)) m_pic->ir7_w(state); } private: required_device<pic8259_device> m_pic; - + required_ioport m_dsw; }; // device type definition |