summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/8255ppi.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2011-05-02 03:32:58 +0000
committer Aaron Giles <aaron@aarongiles.com>2011-05-02 03:32:58 +0000
commit722631601e2a98baf53f82a8059bcfece53b79f8 (patch)
treef94c5500663ebc6e3ec1c33b4852c24187607b5f /src/emu/machine/8255ppi.h
parentd2c1a70fc2be52d570a675f36d431eced28049f9 (diff)
Reimplemented devcb using delegates and classes. Unified the logic
for identifying targets and simplified the code. [Aaron Giles] I have some further ideas but this is a good midway point.
Diffstat (limited to 'src/emu/machine/8255ppi.h')
-rw-r--r--src/emu/machine/8255ppi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/machine/8255ppi.h b/src/emu/machine/8255ppi.h
index 229dc8265cf..d85c56439da 100644
--- a/src/emu/machine/8255ppi.h
+++ b/src/emu/machine/8255ppi.h
@@ -58,8 +58,8 @@ public:
UINT8 ppi8255_r(UINT32 offset);
void ppi8255_w(UINT32 offset, UINT8 data);
- void ppi8255_set_port_read(int which, const devcb_read8 *config) { devcb_resolve_read8(&m_port_read[which], config, this); }
- void ppi8255_set_port_write(int which, const devcb_write8 *config) { devcb_resolve_write8(&m_port_write[which], config, this); }
+ void ppi8255_set_port_read(int which, const devcb_read8 &config) { m_port_read[which].resolve(config, *this); }
+ void ppi8255_set_port_write(int which, const devcb_write8 &config) { m_port_write[which].resolve(config, *this); }
void ppi8255_set_port(int which, UINT8 data) { ppi8255_input(which, data); }
UINT8 ppi8255_get_port(int which) { return m_output[which]; }