Skip to content

Commit

Permalink
decode long NOP in x86
Browse files Browse the repository at this point in the history
  • Loading branch information
trou committed Dec 22, 2017
1 parent 77f4254 commit ac8ac17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ocaml/src/disassembly/x86.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2322,6 +2322,8 @@ struct
match getchar s with
| '\x00' -> grp6 s
| '\x01' -> grp7 s
(* long nop *)
| '\x1F' -> let _, _ = operands_from_mod_reg_rm s s.operand_sz 0 in return s [ Nop ]
(* CMOVcc *)
| c when '\x40' <= c && c <= '\x4f' -> let cond = (Char.code c) - 0x40 in cmovcc s cond

Expand Down

0 comments on commit ac8ac17

Please sign in to comment.