mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
Fix count cycles macro for count cycles > 4095
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user