Skip to content

Commit 9434915

Browse files
committed
display PC for diassembled instructions
1 parent ea1d9f5 commit 9434915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evmasm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main():
5252

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

5757
if __name__ == "__main__":
5858
main()

0 commit comments

Comments
 (0)