Skip to content

Commit

Permalink
Fixed issue with api migration
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ext authored Dec 27, 2021
1 parent 6d00b98 commit aa86249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ida-embed-arch-disasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def activate(self, ctx):
import capstone
md = capstone.Cs(capstone.CS_ARCH_X86, capstone.CS_MODE_64)
md.details = True
data = idaapi.get_many_bytes(start, end - start)
data = idaapi.get_bytes(start, end - start)
for insn in md.disasm(data, start):
# print "0x%x:\t%s\t%s" % (insn.address, insn.mnemonic, insn.op_str)
idaapi.set_cmt(insn.address, str('%s %s' % (insn.mnemonic, insn.op_str)), False)
Expand Down

0 comments on commit aa86249

Please sign in to comment.