summaryrefslogtreecommitdiff
path: root/src/arch/operand.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/operand.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/operand.h')
-rw-r--r--src/arch/operand.h48
1 files changed, 4 insertions, 44 deletions
diff --git a/src/arch/operand.h b/src/arch/operand.h
index e083668..cd7b213 100644
--- a/src/arch/operand.h
+++ b/src/arch/operand.h
@@ -26,8 +26,10 @@
#include <stdbool.h>
-#include <stdint.h>
-#include <sys/types.h>
+
+
+#include "archbase.h"
+
@@ -55,48 +57,6 @@ typedef enum _AsmOperandSize
#define AOS_64_BITS AOS_64_BITS_UNSIGNED
-/* Définition générique d'une opérande */
-typedef struct _asm_operand asm_operand;
-
-
-/* Différentes formes de représentation humaine */
-typedef enum _AsmSyntax
-{
- ASX_INTEL, /* Syntaxe Intel */
- ASX_ATT /* Syntaxte AT&T */
-
-} AsmSyntax;
-
-
-
-/* Crée une opérande pour l'instruction 'db'. */
-bool fill_db_operand(asm_operand *, uint8_t);
-
-/* Traduit une opérande de type 'db' en texte. */
-void print_db_operand(const asm_operand *, char *, size_t, AsmSyntax);
-
-/* Lit une valeur (signée ou non) sur x bits. */
-bool read_imm_value(AsmOperandSize, const uint8_t *, off_t *, off_t, ...);
-
-/* Indique le signe d'une valeur immédiate. */
-bool is_imm_operand_negative(const asm_operand *);
-
-/* Crée une opérande contenant une valeur sur x bits. */
-bool fill_imm_operand(asm_operand *, AsmOperandSize, const uint8_t *, off_t *, off_t);
-
-/* Crée une opérande contenant une valeur sur x bits. */
-bool fill_imm_operand_with_value(asm_operand *, AsmOperandSize, ...);
-
-/* Crée une opérande contenant une valeur relative sur x bits. */
-bool fill_relimm_operand(asm_operand *, AsmOperandSize, const uint8_t *, off_t *, off_t, uint64_t);
-
-/* Récupère la valeur d'une opérande sur x bits. */
-bool get_imm_operand_value(asm_operand *, AsmOperandSize, ...);
-
-/* Traduit une opérande de valeur immédiate en texte. */
-void print_imm_operand(const asm_operand *, char *, size_t, AsmSyntax);
-
-
#include <glib-object.h>