summaryrefslogtreecommitdiff
path: root/src/arch/x86/processor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-09-09 22:52:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-09-09 22:52:57 (GMT)
commit15387adcbd3e27fe581754c0ee56edc64272d58e (patch)
tree45c655c89c7da57fff822569c4bc3dc655032eb6 /src/arch/x86/processor.c
parentb77dcf34b9b2308978e1c6333b34cde9f0e27a8c (diff)
Supported the 'moffs' type of operand.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@28 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/x86/processor.c')
-rw-r--r--src/arch/x86/processor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/processor.c b/src/arch/x86/processor.c
index 3ca14b9..4326294 100644
--- a/src/arch/x86/processor.c
+++ b/src/arch/x86/processor.c
@@ -253,6 +253,9 @@ void x86_register_instructions(asm_x86_processor *proc)
register_opcode(proc->opcodes[X86_OP_NOP], 0x00, 0x90, "nop", read_instr_nop);
+ register_opcode(proc->opcodes[X86_OP_MOV_MOFFS_TO_AL], 0x66, 0xa0, "mov", read_instr_mov_moffs8_to_al);
+ register_opcode(proc->opcodes[X86_OP_MOV_MOFFS_TO_E_AX], 0x66, 0xa1, "mov", read_instr_mov_moffs1632_to_e_ax);
+
register_opcode(proc->opcodes[X86_OP_TEST_AL], 0x00, 0xa8, "test", read_instr_test_al);
register_opcode(proc->opcodes[X86_OP_TEST_E_AX], 0x66, 0xa9, "test", read_instr_test_e_ax);
@@ -387,6 +390,9 @@ void x86_print_instruction(const asm_x86_processor *proc, const asm_x86_instr *i
break;
case AOT_MEM:
break;
+ case AOT_MOFFS:
+ x86_print_moffs_operand(ASM_INSTRUCTION(instr)->operands[i], opbuffer[i], 64, syntax);
+ break;
}
/* Impression globale finale */