summaryrefslogtreecommitdiff
path: root/src/arch/operand.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-09-14 20:54:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-09-14 20:54:43 (GMT)
commit06cf576b280cbabb73a956161693a63ee846f57b (patch)
tree3ac4b32e869cc8aaa1d4b7429d7d4a12f9a8ae7f /src/arch/operand.h
parentab1489b6a6ef1f09957f6f805f143fceb42f6a08 (diff)
Made the program able to disassemble a simple binary completely.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@30 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/operand.h')
-rw-r--r--src/arch/operand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/operand.h b/src/arch/operand.h
index 1067518..e913059 100644
--- a/src/arch/operand.h
+++ b/src/arch/operand.h
@@ -62,9 +62,15 @@ 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, ...);
+
/* 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);