diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-05-17 22:59:55 (GMT) |
commit | 4d0ff0c23862c242d533d9b2d34e8812ef99ad61 (patch) | |
tree | 3b8504b8d3946a8bc9a702b819138ab1e5501be6 /src/arch/operand-int.h | |
parent | 96cb6971ee3ca529958b8cb1e8e55a6eb4e60eae (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-int.h')
-rw-r--r-- | src/arch/operand-int.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/src/arch/operand-int.h b/src/arch/operand-int.h index 4a515c3..8048548 100644 --- a/src/arch/operand-int.h +++ b/src/arch/operand-int.h @@ -25,68 +25,10 @@ #define _ARCH_OPERAND_INT_H -#include <stdint.h> - - #include "operand.h" -/* Types d'opérandes rencontrables */ -typedef enum _AsmOperandType -{ - AOT_NONE, /* Type d'opérande inconnu ! */ - AOT_IMM, /* Valeur immédiate */ - AOT_REG, /* Registre quelconque */ - AOT_MEM, /* Accès à la mémoire */ - - /* X86 */ - - AOT_MOFFS /* Emplacement mémoire */ - -} AsmOperandType; - -/* Définition générique d'une opérande */ -struct _asm_operand -{ - AsmOperandType type; /* Type d'opérande */ - AsmOperandSize size; /* Taille de l'opérande */ - - /** - * Note : dans le cas d'une valeur signée, - * signed_imm contient la valeur lue/donnée, et - * unsigned_imm la valeur humainement lisible (ie. positive). - */ - - union - { - uint8_t val8; /* Valeur sur 8 bits */ - uint16_t val16; /* Valeur sur 16 bits */ - uint32_t val32; /* Valeur sur 32 bits */ - uint64_t val64; /* Valeur sur 64 bits */ - - } unsigned_imm; - - union - { - uint8_t val8; /* Valeur sur 8 bits */ - uint16_t val16; /* Valeur sur 16 bits */ - uint32_t val32; /* Valeur sur 32 bits */ - uint64_t val64; /* Valeur sur 64 bits */ - - } signed_imm; - -}; - - -#define ASM_OPERAND(o) ((asm_operand *)o) - - - - - - - /* Traduit un opérande en version humainement lisible. */ typedef char * (* get_operand_text_fc) (const GArchOperand *, const exe_format *, AsmSyntax); @@ -101,11 +43,6 @@ struct _GArchOperand }; - - - - - /* Définition générique d'un opérande d'architecture (classe) */ struct _GArchOperandClass { @@ -115,11 +52,4 @@ struct _GArchOperandClass - - - - - - - #endif /* _ARCH_OPERAND_INT_H */ |