fix clz for realsies

This commit is contained in:
Jaklyy 2024-07-04 11:04:38 -04:00
parent 0060958fed
commit a549977eb0
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ void A_CLZ(ARM* cpu)
val |= 0x1; val |= 0x1;
} }
if ((cpu->CurInstr >> 12) & 0xF == 15) cpu->JumpTo(res & ~1); if (((cpu->CurInstr >> 12) & 0xF) == 15) cpu->JumpTo(res & ~1);
else cpu->R[(cpu->CurInstr >> 12) & 0xF] = res; else cpu->R[(cpu->CurInstr >> 12) & 0xF] = res;
cpu->AddCycles_C(); cpu->AddCycles_C();
} }