mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fixed devcb regression. (nw)
This commit is contained in:
parent
d4138762a7
commit
5951529d11
@ -219,6 +219,11 @@ static CPU_INIT( m4510 )
|
||||
cpustate->in_port_func.resolve(intf->in_port_func, *device);
|
||||
cpustate->out_port_func.resolve(intf->out_port_func, *device);
|
||||
}
|
||||
else
|
||||
{
|
||||
devcb_write8 nullcb = DEVCB_NULL;
|
||||
cpustate->out_port_func.resolve(nullcb, *device);
|
||||
}
|
||||
}
|
||||
|
||||
static CPU_RESET( m4510 )
|
||||
|
@ -155,6 +155,11 @@ static void m6502_common_init(legacy_cpu_device *device, device_irq_callback irq
|
||||
cpustate->in_port_func.resolve(intf->in_port_func, *device);
|
||||
cpustate->out_port_func.resolve(intf->out_port_func, *device);
|
||||
}
|
||||
else
|
||||
{
|
||||
devcb_write8 nullcb = DEVCB_NULL;
|
||||
cpustate->out_port_func.resolve(nullcb, *device);
|
||||
}
|
||||
|
||||
device->save_item(NAME(cpustate->pc.w.l));
|
||||
device->save_item(NAME(cpustate->sp.w.l));
|
||||
|
Loading…
Reference in New Issue
Block a user