Paranthesis for ROR instruction for readability

This commit is contained in:
sBubshait 2024-06-06 16:25:17 +01:00
parent 16efa0b3c8
commit 059a3e747c

View File

@ -225,7 +225,7 @@ static void executeDPRegister(Machine *state, a64inst_instruction *inst) {
if (arithmLogicData->type != a64inst_DPR_LOGIC) { if (arithmLogicData->type != a64inst_DPR_LOGIC) {
fprintf(stderr, "Attempting to perform ROR shift on non-logic register data processing instruction!\n"); fprintf(stderr, "Attempting to perform ROR shift on non-logic register data processing instruction!\n");
} }
src2Val = truncateValue(src2Val >> shiftAmount | src2Val << (getMSBPos(regType) - shiftAmount + 1), regType); src2Val = truncateValue((src2Val >> shiftAmount) | (src2Val << (getMSBPos(regType) + 1 - shiftAmount)), regType);
break; break;
default: default: