improve msr timings for arm9

This commit is contained in:
Jaklyy 2024-07-22 19:39:55 -04:00
parent 2e421e29e3
commit 4b703d24b5

View File

@ -121,7 +121,8 @@ void A_MSR_IMM(ARM* cpu)
if (!(cpu->CurInstr & (1<<22)))
cpu->UpdateMode(oldpsr, cpu->CPSR);
cpu->AddCycles_C();
if ((cpu->Num != 1) && (cpu->CurInstr & (0x7<<16))) cpu->AddCycles_CI(2);
else cpu->AddCycles_C();
}
void A_MSR_REG(ARM* cpu)
@ -174,7 +175,8 @@ void A_MSR_REG(ARM* cpu)
if (!(cpu->CurInstr & (1<<22)))
cpu->UpdateMode(oldpsr, cpu->CPSR);
cpu->AddCycles_C();
if ((cpu->Num != 1) && (cpu->CurInstr & (0x7<<16))) cpu->AddCycles_CI(2);
else cpu->AddCycles_C();
}
void A_MRS(ARM* cpu)