diff options
author | 2013-05-23 13:43:13 +0000 | |
---|---|---|
committer | 2013-05-23 13:43:13 +0000 | |
commit | ebe10f448a44a4a8ac3d6d78a952fa0d793f4153 (patch) | |
tree | 10e6c65678d31278cca2bea528edb162e41a2f51 /src/emu/cpu/m6800/m6800.c | |
parent | 439be9ca8eed46003c98135d1b62371d37276b1f (diff) |
(MESS) ehx20: Added slave CPU ROM dump. [Kevtris]
m6800: Resolved out_sc2_func for M6808/HD6301/HD63701 variants. [Curt Coder]
Diffstat (limited to 'src/emu/cpu/m6800/m6800.c')
-rw-r--r-- | src/emu/cpu/m6800/m6800.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/emu/cpu/m6800/m6800.c b/src/emu/cpu/m6800/m6800.c index 69cc80bfa3d..bbadfa5ed9f 100644 --- a/src/emu/cpu/m6800/m6800.c +++ b/src/emu/cpu/m6800/m6800.c @@ -1302,6 +1302,18 @@ static CPU_INIT( m6808 ) //cpustate->io = &device->space(AS_IO); state_register(cpustate, "m6808"); + + if (device->static_config() != NULL) + { + m6801_interface *intf = (m6801_interface *) device->static_config(); + + cpustate->out_sc2_func.resolve(intf->out_sc2_func, *device); + } + else + { + devcb_write_line nullcb = DEVCB_NULL; + cpustate->out_sc2_func.resolve(nullcb, *device); + } } /**************************************************************************** @@ -1326,6 +1338,18 @@ static CPU_INIT( hd6301 ) cpustate->sci_timer = device->machine().scheduler().timer_alloc(FUNC(sci_tick), cpustate); state_register(cpustate, "hd6301"); + + if (device->static_config() != NULL) + { + m6801_interface *intf = (m6801_interface *) device->static_config(); + + cpustate->out_sc2_func.resolve(intf->out_sc2_func, *device); + } + else + { + devcb_write_line nullcb = DEVCB_NULL; + cpustate->out_sc2_func.resolve(nullcb, *device); + } } @@ -1351,6 +1375,18 @@ static CPU_INIT( hd63701 ) cpustate->sci_timer = device->machine().scheduler().timer_alloc(FUNC(sci_tick), cpustate); state_register(cpustate, "hd63701"); + + if (device->static_config() != NULL) + { + m6801_interface *intf = (m6801_interface *) device->static_config(); + + cpustate->out_sc2_func.resolve(intf->out_sc2_func, *device); + } + else + { + devcb_write_line nullcb = DEVCB_NULL; + cpustate->out_sc2_func.resolve(nullcb, *device); + } } /* |