diff --git a/src/parser.c b/src/parser.c index c332bd6..33c7685 100644 --- a/src/parser.c +++ b/src/parser.c @@ -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]); }