mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
correct thumb multiply timings
This commit is contained in:
parent
5f003eb967
commit
3c7db9b21f
@ -1583,10 +1583,10 @@ void T_MUL_REG(ARM* cpu)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
cpu->SetC(0); // carry flag destroyed, they say. whatever that means...
|
cpu->SetC(0); // carry flag destroyed, they say. whatever that means...
|
||||||
if (a & 0xFF000000) cycles += 4;
|
if ((a & 0xFFFFFF00) == 0x00000000 || (a & 0xFFFFFF00) == 0xFFFFFF00) cycles = 1;
|
||||||
else if (a & 0x00FF0000) cycles += 3;
|
else if ((a & 0xFFFF0000) == 0x00000000 || (a & 0xFFFF0000) == 0xFFFF0000) cycles = 2;
|
||||||
else if (a & 0x0000FF00) cycles += 2;
|
else if ((a & 0xFF000000) == 0x00000000 || (a & 0xFF000000) == 0xFF000000) cycles = 3;
|
||||||
else cycles += 1;
|
else cycles = 4;
|
||||||
}
|
}
|
||||||
cpu->AddCycles_CI(cycles);
|
cpu->AddCycles_CI(cycles);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user