Moved integer registers, PC and flags_* variables into new cpu_state structure. Reduces recompiled code size slightly, small speedup (1-3%).

This commit is contained in:
SarahW 2016-04-20 21:39:41 +01:00
commit c81a91fd72
52 changed files with 1494 additions and 1408 deletions

View file

@ -5,7 +5,7 @@ static int opMOVD_l_mm_a16(uint32_t fetchdat)
fetch_ea_16(fetchdat);
if (mod == 3)
{
MM[reg].l[0] = regs[rm].l;
MM[reg].l[0] = cpu_state.regs[rm].l;
MM[reg].l[1] = 0;
CLOCK_CYCLES(1);
}
@ -28,7 +28,7 @@ static int opMOVD_l_mm_a32(uint32_t fetchdat)
fetch_ea_32(fetchdat);
if (mod == 3)
{
MM[reg].l[0] = regs[rm].l;
MM[reg].l[0] = cpu_state.regs[rm].l;
MM[reg].l[1] = 0;
CLOCK_CYCLES(1);
}
@ -52,7 +52,7 @@ static int opMOVD_mm_l_a16(uint32_t fetchdat)
fetch_ea_16(fetchdat);
if (mod == 3)
{
regs[rm].l = MM[reg].l[0];
cpu_state.regs[rm].l = MM[reg].l[0];
CLOCK_CYCLES(1);
}
else
@ -70,7 +70,7 @@ static int opMOVD_mm_l_a32(uint32_t fetchdat)
fetch_ea_32(fetchdat);
if (mod == 3)
{
regs[rm].l = MM[reg].l[0];
cpu_state.regs[rm].l = MM[reg].l[0];
CLOCK_CYCLES(1);
}
else