mirror of
https://github.com/holub/mame
synced 2025-07-06 10:29:38 +03:00
Oops, swapped import/export on the R register.
This commit is contained in:
parent
320097d9fe
commit
d2d5def542
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user