mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
i86: don't lose save_xor on reset. (nw)
This commit is contained in:
parent
aa526af88b
commit
e39e742b38
@ -231,10 +231,13 @@ static CPU_RESET( i8086 )
|
|||||||
{
|
{
|
||||||
i8086_state *cpustate = get_safe_token(device);
|
i8086_state *cpustate = get_safe_token(device);
|
||||||
device_irq_acknowledge_callback save_irqcallback;
|
device_irq_acknowledge_callback save_irqcallback;
|
||||||
|
offs_t save_xor;
|
||||||
|
|
||||||
save_irqcallback = cpustate->irq_callback;
|
save_irqcallback = cpustate->irq_callback;
|
||||||
|
save_xor = cpustate->fetch_xor;
|
||||||
memset(cpustate, 0, sizeof(*cpustate));
|
memset(cpustate, 0, sizeof(*cpustate));
|
||||||
cpustate->irq_callback = save_irqcallback;
|
cpustate->irq_callback = save_irqcallback;
|
||||||
|
cpustate->fetch_xor = save_xor;
|
||||||
cpustate->device = device;
|
cpustate->device = device;
|
||||||
cpustate->program = &device->space(AS_PROGRAM);
|
cpustate->program = &device->space(AS_PROGRAM);
|
||||||
cpustate->direct = &cpustate->program->direct();
|
cpustate->direct = &cpustate->program->direct();
|
||||||
|
Loading…
Reference in New Issue
Block a user