summaryrefslogtreecommitdiff
path: root/src/arch/instruction.h
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.h
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.h')
-rw-r--r--src/arch/instruction.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/arch/instruction.h b/src/arch/instruction.h
index 2df38af..08f459f 100644
--- a/src/arch/instruction.h
+++ b/src/arch/instruction.h
@@ -25,19 +25,6 @@
#define _ARCH_INSTRUCTION_H
-#include <stdint.h>
-#include <sys/types.h>
-
-
-
-/* Définition générique d'une instruction */
-typedef struct _asm_instr asm_instr;
-
-
-
-
-
-
#include <glib-object.h>
#include <sys/types.h>
@@ -89,6 +76,9 @@ void g_arch_instruction_get_location(GArchInstruction *, off_t *, off_t *, vmpa_
/* Attache une seule opérande à une instruction. */
void g_arch_instruction_attach_one_operand(GArchInstruction *, GArchOperand *);
+/* Attache deux opérandes à une instruction. */
+void g_arch_instruction_attach_two_operands(GArchInstruction *, GArchOperand *, GArchOperand *);
+
/* Traduit une instruction en version humainement lisible. */
char *g_arch_instruction_get_text(const GArchInstruction *, const exe_format *, AsmSyntax);