diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2008-09-08 22:53:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2008-09-08 22:53:49 (GMT) |
commit | b77dcf34b9b2308978e1c6333b34cde9f0e27a8c (patch) | |
tree | 9263e556e0e42c915b82fe48a4c3bdc5d2654b24 /src/arch/x86/operand.h | |
parent | b52f03ab912cd5e51dc2abea20edee6ad38c26fe (diff) |
Handled four kinds of the 'test' opcode.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@27 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/operand.h')
-rw-r--r-- | src/arch/x86/operand.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/x86/operand.h b/src/arch/x86/operand.h index fbaba57..c330b8e 100644 --- a/src/arch/x86/operand.h +++ b/src/arch/x86/operand.h @@ -51,6 +51,22 @@ asm_x86_operand *x86_create_reg1632_operand_from_modrm(uint8_t, bool, bool); /* Crée une opérande renvoyant vers un contenu 16 ou 32 bits. */ asm_x86_operand *x86_create_content1632_operand(const uint8_t *, off_t *, off_t, bool, bool); + + +/* Crée une opérande renvoyant vers un registre 8 bits. */ +asm_x86_operand *x86_create_r8_operand(uint8_t, bool); + +/* Crée une opérande à partir d'un registre/une mémoire 8 bits. */ +asm_x86_operand *x86_create_rm8_operand(const uint8_t *, off_t *, off_t, bool); + +/* Crée une opérande renvoyant vers un registre 16 ou 32 bits. */ +asm_x86_operand *x86_create_r1632_operand(uint8_t, bool, bool); + +/* Crée une opérande à partir d'un registre/une mémoire 16/32b. */ +asm_x86_operand *x86_create_rm1632_operand(const uint8_t *, off_t *, off_t, bool, bool); + + + /* Traduit une opérande de registre en texte. */ void x86_print_reg_operand(const asm_x86_operand *, char *, size_t, AsmSyntax); |