From 059a3e747c4b813f84418600782387f0aa6224f5 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Thu, 6 Jun 2024 16:25:17 +0100 Subject: [PATCH] Paranthesis for ROR instruction for readability --- src/execute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/execute.c b/src/execute.c index d59f336..4ef7512 100644 --- a/src/execute.c +++ b/src/execute.c @@ -225,7 +225,7 @@ static void executeDPRegister(Machine *state, a64inst_instruction *inst) { if (arithmLogicData->type != a64inst_DPR_LOGIC) { 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; default: