Oops, swapped import/export on the R register.

This commit is contained in:
Aaron Giles 2008-12-19 22:29:14 +00:00
parent 320097d9fe
commit d2d5def542

View File

@ -3582,7 +3582,8 @@ static CPU_IMPORT_STATE( z80 )
switch (entry->index) switch (entry->index)
{ {
case Z80_R: case Z80_R:
cpustate->rtemp = (cpustate->r & 0x7f) | (cpustate->r2 & 0x80); cpustate->r = cpustate->rtemp & 0x7f;
cpustate->r2 = cpustate->rtemp & 0x80;
break; break;
default: default:
@ -3599,8 +3600,7 @@ static CPU_EXPORT_STATE( z80 )
switch (entry->index) switch (entry->index)
{ {
case Z80_R: case Z80_R:
cpustate->r = cpustate->rtemp & 0x7f; cpustate->rtemp = (cpustate->r & 0x7f) | (cpustate->r2 & 0x80);
cpustate->r2 = cpustate->rtemp & 0x80;
break; break;
default: default: