diff options
author | 2011-05-02 03:32:58 +0000 | |
---|---|---|
committer | 2011-05-02 03:32:58 +0000 | |
commit | 722631601e2a98baf53f82a8059bcfece53b79f8 (patch) | |
tree | f94c5500663ebc6e3ec1c33b4852c24187607b5f /src/emu/cpu/m6800/m6800.c | |
parent | d2c1a70fc2be52d570a675f36d431eced28049f9 (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/cpu/m6800/m6800.c')
-rw-r--r-- | src/emu/cpu/m6800/m6800.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/m6800/m6800.c b/src/emu/cpu/m6800/m6800.c index 8770fe73a0c..4c9478a90d4 100644 --- a/src/emu/cpu/m6800/m6800.c +++ b/src/emu/cpu/m6800/m6800.c @@ -1212,7 +1212,7 @@ static CPU_INIT( m6801 ) { m6801_interface *intf = (m6801_interface *) device->static_config(); - devcb_resolve_write_line(&cpustate->out_sc2_func, &intf->out_sc2_func, device); + cpustate->out_sc2_func.resolve(intf->out_sc2_func, *device); } } @@ -1262,7 +1262,7 @@ static CPU_INIT( m6803 ) { m6801_interface *intf = (m6801_interface *) device->static_config(); - devcb_resolve_write_line(&cpustate->out_sc2_func, &intf->out_sc2_func, device); + cpustate->out_sc2_func.resolve(intf->out_sc2_func, *device); } } @@ -1379,7 +1379,7 @@ INLINE void set_os3(m6800_state *cpustate, int state) { //logerror("M6801 '%s' OS3: %u\n", cpustate->device->tag(), state); - devcb_call_write_line(&cpustate->out_sc2_func, state); + cpustate->out_sc2_func(state); } READ8_HANDLER( m6801_io_r ) |