summaryrefslogtreecommitdiff
path: root/src/arch/instruction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r--src/arch/instruction.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index d3cc882..073f55c 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -154,6 +154,31 @@ void g_arch_instruction_attach_one_operand(GArchInstruction *instr, GArchOperand
/******************************************************************************
* *
+* Paramètres : instr = instance à mettre à jour. *
+* operand1 = première instruction à venir associer. *
+* operand2 = seconde instruction à venir associer. *
+* *
+* Description : Attache deux opérandes à une instruction. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void g_arch_instruction_attach_two_operands(GArchInstruction *instr, GArchOperand *operand1, GArchOperand *operand2)
+{
+ instr->operands = (GArchOperand **)calloc(2, sizeof(GArchOperand *));
+ instr->operands_count = 2;
+
+ instr->operands[0] = operand1;
+ instr->operands[1] = operand2;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : instr = instruction à traiter. *
* format = format du binaire manipulé. *
* syntax = type de représentation demandée. *