Fix count cycles macro for count cycles > 4095

This commit is contained in:
SSimco
2024-09-01 09:42:45 +03:00
parent d5d686c3bf
commit 52d73c2f3e
@@ -714,7 +714,7 @@ bool AArch64GenContext_t::macro(IMLInstruction* imlInstruction)
uint32 cycleCount = imlInstruction->op_macro.param;
AdrImm adrCycles = AdrImm(hCPU, offsetof(PPCInterpreter_t, remainingCycles));
ldr(tempWReg, adrCycles);
sub(tempWReg, tempWReg, cycleCount);
sub_imm(tempWReg, tempWReg, cycleCount, temp2WReg);
str(tempWReg, adrCycles);
return true;
}