diff options
Diffstat (limited to 'src/arch/operand.h')
-rw-r--r-- | src/arch/operand.h | 48 |
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> |