Fix Bug in Parser for an error checking

This commit is contained in:
sBubshait 2024-06-13 19:20:02 +01:00
parent ded57032ce
commit fb15dc90c6

View File

@ -289,7 +289,7 @@ void parseDPImmediate(a64inst_instruction *inst, char *tokens[], int tokensCount
data->DPIOpType = a64inst_DPI_WIDEMOV;
data->processOp = indexStringIn(tokens[0], WIDE_MOV_OPCODES, 3);
data->processOpData.wideMovData.immediate = getOperandNumber(tokens[2]);
if (tokensCount >= 3) {
if (tokensCount >= 4) {
data->processOpData.wideMovData.shiftScalar = getOperandNumber(tokens[3]);
}