summaryrefslogtreecommitdiff
path: root/src/arch/instruction.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-05-17 22:59:55 (GMT)
commit4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch)
tree3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/arch/instruction.c
parent96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (diff)
Used only the new format of processor/instructions/operands for x86.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@64 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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. *