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/processor-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/processor-int.h')
-rw-r--r-- | src/arch/processor-int.h | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/src/arch/processor-int.h b/src/arch/processor-int.h index 873ec72..bbe2384 100644 --- a/src/arch/processor-int.h +++ b/src/arch/processor-int.h @@ -29,7 +29,7 @@ - +/* TODO : nettoyer ! */ #include <stdint.h> #include <sys/types.h> @@ -45,35 +45,6 @@ -/* Décode une instruction dans un flux de données. */ -typedef asm_instr * (* fetch_instruction_) (const asm_processor *, const uint8_t *, off_t *, off_t, uint64_t); - -/* Traduit une instruction en version humainement lisible. */ -typedef void (* print_instruction_) (const asm_processor *, const exe_format *, const asm_instr *, char *, size_t, AsmSyntax); - - - -/* Définition générique d'une architecture */ -struct _asm_processor -{ - - fetch_instruction_ fetch_instr; /* Lecture d'une instruction */ - - print_instruction_ print_instr; /* Version lisible d'une instr.*/ - - -}; - - -#define ASM_PROCESSOR(proc) ((asm_processor *)proc) - - - - -/* S'assure qu'une chaîne de caractère tient sur une ligne. */ -char *escape_crlf_bin_string(char *); - - |