mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-14 08:59:18 +00:00
x86: MOV32ms should reference word rather than dword. bug reported by Gabriel Quadros
This commit is contained in:
parent
8ab01369d7
commit
ba31f26d5d
@ -82,13 +82,21 @@ static void printi16mem(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
|
||||
static void printi32mem(MCInst *MI, unsigned OpNo, SStream *O)
|
||||
{
|
||||
if (MI->Opcode == X86_BOUNDS32rm) {
|
||||
SStream_concat0(O, "qword ptr ");
|
||||
MI->x86opsize = 8;
|
||||
} else {
|
||||
SStream_concat0(O, "dword ptr ");
|
||||
MI->x86opsize = 4;
|
||||
switch(MI->Opcode) {
|
||||
default:
|
||||
SStream_concat0(O, "dword ptr ");
|
||||
MI->x86opsize = 4;
|
||||
break;
|
||||
case X86_BOUNDS32rm:
|
||||
SStream_concat0(O, "qword ptr ");
|
||||
MI->x86opsize = 8;
|
||||
break;
|
||||
case X86_MOV32ms:
|
||||
SStream_concat0(O, "word ptr ");
|
||||
MI->x86opsize = 2;
|
||||
break;
|
||||
}
|
||||
|
||||
printMemReference(MI, OpNo, O);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user