Fix Bug in Parser for an error checking
This commit is contained in:
parent
ded57032ce
commit
fb15dc90c6
@ -289,7 +289,7 @@ void parseDPImmediate(a64inst_instruction *inst, char *tokens[], int tokensCount
|
|||||||
data->DPIOpType = a64inst_DPI_WIDEMOV;
|
data->DPIOpType = a64inst_DPI_WIDEMOV;
|
||||||
data->processOp = indexStringIn(tokens[0], WIDE_MOV_OPCODES, 3);
|
data->processOp = indexStringIn(tokens[0], WIDE_MOV_OPCODES, 3);
|
||||||
data->processOpData.wideMovData.immediate = getOperandNumber(tokens[2]);
|
data->processOpData.wideMovData.immediate = getOperandNumber(tokens[2]);
|
||||||
if (tokensCount >= 3) {
|
if (tokensCount >= 4) {
|
||||||
data->processOpData.wideMovData.shiftScalar = getOperandNumber(tokens[3]);
|
data->processOpData.wideMovData.shiftScalar = getOperandNumber(tokens[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user