mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
x86: fix EAX operand for X86_MOV32ao32. fix issue #852
This commit is contained in:
parent
3925b332ce
commit
7b4535f746
@ -14164,6 +14164,7 @@ static void printInstruction(MCInst *MI, SStream *O, MCRegisterInfo *MRI)
|
||||
|
||||
// Emit the opcode for the instruction.
|
||||
unsigned int opcode = MCInst_getOpcode(MI);
|
||||
//printf("> opcode = %u\n", opcode);
|
||||
uint64_t Bits1 = OpInfo[opcode];
|
||||
uint64_t Bits2 = OpInfo2[opcode];
|
||||
uint64_t Bits = (Bits2 << 32) | Bits1;
|
||||
|
@ -47241,6 +47241,7 @@ static struct insn_reg insn_regs_att[] = {
|
||||
{ X86_INSW, X86_REG_DX },
|
||||
{ X86_INSL, X86_REG_DX },
|
||||
|
||||
{ X86_MOV32ao32, X86_REG_EAX },
|
||||
{ X86_MOV64o64a, X86_REG_RAX },
|
||||
|
||||
{ X86_PUSHCS32, X86_REG_CS },
|
||||
@ -47356,7 +47357,6 @@ static struct insn_reg insn_regs_intel[] = {
|
||||
{ X86_MOV64o32a, X86_REG_EAX },
|
||||
|
||||
{ X86_MOV16ao16, X86_REG_AX }, // 16-bit A1 1020 // mov ax, word ptr [0x2010]
|
||||
{ X86_MOV32ao32, X86_REG_EAX }, // 32-bit A1 10203040 // mov eax, dword ptr [0x40302010]
|
||||
|
||||
{ X86_MOV64ao32, X86_REG_RAX }, // 64-bit 48 8B04 10203040 // mov rax, qword ptr [0x40302010]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user