Skip to content

Commit

Permalink
display PC for diassembled instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
computerality committed Jul 11, 2018
1 parent ea1d9f5 commit 9434915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evmasm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main():

insns = list(EVMAsm.disassemble_all(buf))
for i in insns:
args.output.write(str(i) + "\n")
args.output.write("%08x: %s\n" %(i.pc, str(i)))

if __name__ == "__main__":
main()
Expand Down

0 comments on commit 9434915

Please sign in to comment.