classify directprocessing instruction type

This commit is contained in:
EDiasAlberto 2024-06-05 20:53:56 +01:00
parent 4df768f327
commit 48efdf8284

View File

@ -44,7 +44,12 @@ void classifyOpcode(char* opcode, a64inst_instruction *instr, char *operandList[
} }
} else { } else {
//data processing int numOperands = sizeof(operandList) / sizeof(operandList[0])
if(numOperands==3){
instr->type = a64inst_DPREGISTER;
} else {
instr->type = a64inst_DPIMMEDIATE;
}
} }
} }
@ -97,10 +102,11 @@ a64inst_instruction *parser(char asmLine[]){
int operandCount = 0; int operandCount = 0;
const char *operandList[4]; const char *operandList[4];
tokeniseOperands(operands, &operandCount, operandList); tokeniseOperands(operands, &operandCount, operandList);
renameAliases(&opcode, &operandList);
} }
return(a64inst_instruction); return(instr);
} }