diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-22 21:57:54 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-22 21:57:54 +0800 |
commit | 490ca410c01a1b8076214d00c21d2edf09c24f86 (patch) | |
tree | 9c206ffda9dcfc723ea25b26809a7371b08d328d /ethvm/asm.go | |
parent | 1e8b54abfb7129fcdf4812ad01b6a7cd61e4f65d (diff) | |
download | go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar.gz go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar.bz2 go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar.lz go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar.xz go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.tar.zst go-tangerine-490ca410c01a1b8076214d00c21d2edf09c24f86.zip |
Minor improvements and fixes to the new vm structure
Diffstat (limited to 'ethvm/asm.go')
-rw-r--r-- | ethvm/asm.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethvm/asm.go b/ethvm/asm.go index fd559d1dc..7ff15a240 100644 --- a/ethvm/asm.go +++ b/ethvm/asm.go @@ -18,7 +18,7 @@ func Disassemble(script []byte) (asm []string) { // Get the opcode (it must be an opcode!) op := OpCode(val) - asm = append(asm, fmt.Sprintf("%04v: %v", pc, op)) + asm = append(asm, fmt.Sprintf("%v", op)) switch op { case PUSH1, PUSH2, PUSH3, PUSH4, PUSH5, PUSH6, PUSH7, PUSH8, PUSH9, PUSH10, PUSH11, PUSH12, PUSH13, PUSH14, PUSH15, PUSH16, PUSH17, PUSH18, PUSH19, PUSH20, PUSH21, PUSH22, PUSH23, PUSH24, PUSH25, PUSH26, PUSH27, PUSH28, PUSH29, PUSH30, PUSH31, PUSH32: @@ -32,7 +32,7 @@ func Disassemble(script []byte) (asm []string) { if len(data) == 0 { data = []byte{0} } - asm = append(asm, fmt.Sprintf("%04v: 0x%x", pc, data)) + asm = append(asm, fmt.Sprintf("0x%x", data)) pc.Add(pc, big.NewInt(a-1)) } |