@@ -109,9 +109,9 @@ func PrintDisassembled(code string) error {
109
109
it := NewInstructionIterator (script )
110
110
for it .Next () {
111
111
if it .Arg () != nil && 0 < len (it .Arg ()) {
112
- fmt .Printf ("%06v : %v 0x%x\n " , it .PC (), it .Op (), it .Arg ())
112
+ fmt .Printf ("%05x : %v 0x%x\n " , it .PC (), it .Op (), it .Arg ())
113
113
} else {
114
- fmt .Printf ("%06v : %v\n " , it .PC (), it .Op ())
114
+ fmt .Printf ("%05x : %v\n " , it .PC (), it .Op ())
115
115
}
116
116
}
117
117
return it .Error ()
@@ -124,9 +124,9 @@ func Disassemble(script []byte) ([]string, error) {
124
124
it := NewInstructionIterator (script )
125
125
for it .Next () {
126
126
if it .Arg () != nil && 0 < len (it .Arg ()) {
127
- instrs = append (instrs , fmt .Sprintf ("%06v : %v 0x%x\n " , it .PC (), it .Op (), it .Arg ()))
127
+ instrs = append (instrs , fmt .Sprintf ("%05x : %v 0x%x\n " , it .PC (), it .Op (), it .Arg ()))
128
128
} else {
129
- instrs = append (instrs , fmt .Sprintf ("%06v : %v\n " , it .PC (), it .Op ()))
129
+ instrs = append (instrs , fmt .Sprintf ("%05x : %v\n " , it .PC (), it .Op ()))
130
130
}
131
131
}
132
132
if err := it .Error (); err != nil {
0 commit comments