x86: identation
This commit is contained in:
parent
e31327da14
commit
ca057fa8f6
|
@ -14,8 +14,8 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/* Capstone Disassembler Engine */
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
|
||||
/* Capstone Disassembly Engine */
|
||||
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
|
||||
|
||||
#include <inttypes.h> // debug
|
||||
#include <string.h>
|
||||
|
|
|
@ -122,8 +122,7 @@ static int modRMRequired(OpcodeType type,
|
|||
|
||||
index = indextable[insnContext];
|
||||
if (index)
|
||||
return decision[index - 1].modRMDecisions[opcode].
|
||||
modrm_type != MODRM_ONEENTRY;
|
||||
return decision[index - 1].modRMDecisions[opcode].modrm_type != MODRM_ONEENTRY;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
@ -548,10 +547,12 @@ static int readPrefixes(struct InternalInstruction* insn)
|
|||
if (insn->vectorExtensionType == TYPE_EVEX) {
|
||||
insn->vectorExtensionPrefix[0] = byte;
|
||||
insn->vectorExtensionPrefix[1] = byte1;
|
||||
|
||||
if (consumeByte(insn, &insn->vectorExtensionPrefix[2])) {
|
||||
dbgprintf(insn, "Couldn't read third byte of EVEX prefix");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (consumeByte(insn, &insn->vectorExtensionPrefix[3])) {
|
||||
dbgprintf(insn, "Couldn't read fourth byte of EVEX prefix");
|
||||
return -1;
|
||||
|
@ -586,8 +587,7 @@ static int readPrefixes(struct InternalInstruction* insn)
|
|||
if (insn->mode == MODE_64BIT || (byte1 & 0xc0) == 0xc0) {
|
||||
insn->vectorExtensionType = TYPE_VEX_3B;
|
||||
insn->necessaryPrefixLocation = insn->readerCursor - 1;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
unconsumeByte(insn);
|
||||
insn->necessaryPrefixLocation = insn->readerCursor - 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue