Previous 199869 Revisions Next

r23664 Thursday 13th June, 2013 at 03:58:01 UTC by R. Belmont
i86: don't lose save_xor on reset. (nw)
[src/emu/cpu/i86]i86.c

trunk/src/emu/cpu/i86/i86.c
r23663r23664
231231{
232232   i8086_state *cpustate = get_safe_token(device);
233233   device_irq_acknowledge_callback save_irqcallback;
234   offs_t save_xor;
234235
235236   save_irqcallback = cpustate->irq_callback;
237   save_xor = cpustate->fetch_xor;
236238   memset(cpustate, 0, sizeof(*cpustate));
237239   cpustate->irq_callback = save_irqcallback;
240   cpustate->fetch_xor = save_xor;
238241   cpustate->device = device;
239242   cpustate->program = &device->space(AS_PROGRAM);
240243   cpustate->direct = &cpustate->program->direct();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team