diff options
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r-- | src/arch/instruction-int.h | 73 |
1 files changed, 1 insertions, 72 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h index c80c20a..f61485f 100644 --- a/src/arch/instruction-int.h +++ b/src/arch/instruction-int.h @@ -25,64 +25,8 @@ #define _ARCH_INSTRUCTION_INT_H -#include "instruction.h" - - -#include "operand-int.h" /* TODO: remove me */ - - - - -#define MAX_OPERANDS 4 - - -#define DB_OPCODE 0x00 - - -#if 0 -/* Typage des instructions rencontrées */ -typedef enum _AsmInstrType -{ - AIT_OTHER, /* Instruction inintéressante */ - - AIT_DB, /* Instruction non décodée */ - - AIT_PUSH, /* Empilement de valeur */ - AIT_POP, /* Dépilement de valeur */ - AIT_JUMP, /* Saut à une adresse */ - - AIT_CALL /* Appel d'une fonction */ - -} AsmInstrType; -#endif - - -/* Définition générique d'une instruction */ -struct _asm_instr -{ - uint8_t opcode; - - uint64_t vaddress; /* Adresse virtuelle associée */ - - off_t offset; /* Position physique de départ */ - off_t length; /* Taille de l'instruction */ - - int/*AsmInstrType*/ type; /* Type d'instruction */ - - asm_operand **operands; /* Liste des opérandes */ - size_t operands_count; /* Nbre. d'opérandes utilisées */ - - -}; - -#define ASM_INSTRUCTION(instr) ((asm_instr *)instr) - - - - - - #include "archbase.h" +#include "instruction.h" @@ -110,9 +54,6 @@ struct _GArchInstruction }; - - - /* Définition générique d'une instruction d'architecture (classe) */ struct _GArchInstructionClass { @@ -122,16 +63,4 @@ struct _GArchInstructionClass - - - - - - - - - - - - #endif /* _ARCH_INSTRUCTION_INT_H */ |