Skip to content

Commit

Permalink
x86: prefix lock added
Browse files Browse the repository at this point in the history
  • Loading branch information
plasma-disassembler committed Dec 19, 2016
1 parent 1a8ec63 commit 774d18a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plasma/lib/arch/x86/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
X86_INS_MOVSW, X86_INS_MOVSD, X86_INS_MOVSQ, X86_INS_LODSB,
X86_INS_LODSW, X86_INS_LODSD, X86_INS_LODSQ, X86_INS_CMPSB,
X86_INS_CMPSW, X86_INS_CMPSD, X86_INS_CMPSQ, X86_INS_SCASB,
X86_INS_SCASW, X86_INS_SCASD, X86_INS_SCASQ, X86_INS_XADD)
X86_INS_SCASW, X86_INS_SCASD, X86_INS_SCASQ, X86_INS_XADD, X86_PREFIX_LOCK)

from plasma.lib.output import OutputAbs
from plasma.lib.arch.x86.utils import (inst_symbol, is_call, is_jump, is_ret,
Expand Down Expand Up @@ -238,6 +238,9 @@ def _rep_end(self, i, tab):


def _pre_asm_inst(self, i, tab):
if i.prefix[0] == X86_PREFIX_LOCK:
self._add("lock ")
return tab
return self._rep_begin(i, tab)


Expand Down

0 comments on commit 774d18a

Please sign in to comment.