fix clz r15

This commit is contained in:
Jaklyy 2024-06-27 13:02:38 -04:00
parent c5b035a973
commit 88e5584b5f

View File

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