From 94349154584a4813460cd4cae562e7f1f18c4785 Mon Sep 17 00:00:00 2001 From: computerality Date: Wed, 11 Jul 2018 11:52:15 -0400 Subject: [PATCH] display PC for diassembled instructions --- evmasm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evmasm b/evmasm index 86b1d27..44db373 100755 --- a/evmasm +++ b/evmasm @@ -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()