mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
fix some multiply timings
This commit is contained in:
parent
13578a3cc9
commit
7cd50e7b56
@ -836,7 +836,7 @@ void A_UMULL(ARM* cpu)
|
||||
|
||||
u32 cycles;
|
||||
if (cpu->Num == 0)
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 3 : 1;
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 4 : 2;
|
||||
else
|
||||
{
|
||||
if ((rs & 0xFFFFFF00) == 0x00000000) cycles = 2;
|
||||
@ -869,7 +869,7 @@ void A_UMLAL(ARM* cpu)
|
||||
|
||||
u32 cycles;
|
||||
if (cpu->Num == 0)
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 3 : 1;
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 4 : 2;
|
||||
else
|
||||
{
|
||||
if ((rs & 0xFFFFFF00) == 0x00000000) cycles = 2;
|
||||
@ -899,7 +899,7 @@ void A_SMULL(ARM* cpu)
|
||||
|
||||
u32 cycles;
|
||||
if (cpu->Num == 0)
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 3 : 1;
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 4 : 2;
|
||||
else
|
||||
{
|
||||
if ((rs & 0xFFFFFF00) == 0x00000000 || (rs & 0xFFFFFF00) == 0xFFFFFF00) cycles = 2;
|
||||
@ -932,7 +932,7 @@ void A_SMLAL(ARM* cpu)
|
||||
|
||||
u32 cycles;
|
||||
if (cpu->Num == 0)
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 3 : 1;
|
||||
cycles = (cpu->CurInstr & (1<<20)) ? 4 : 2;
|
||||
else
|
||||
{
|
||||
if ((rs & 0xFFFFFF00) == 0x00000000 || (rs & 0xFFFFFF00) == 0xFFFFFF00) cycles = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user