mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
vm: extend PrintOps() with INITSSLOT & INITSLOT
This commit is contained in:
parent
82417499d7
commit
bdaffe75cb
1 changed files with 4 additions and 0 deletions
|
@ -212,6 +212,10 @@ func (v *VM) PrintOps() {
|
||||||
case opcode.PUSHA:
|
case opcode.PUSHA:
|
||||||
offset := int32(binary.LittleEndian.Uint32(parameter))
|
offset := int32(binary.LittleEndian.Uint32(parameter))
|
||||||
desc = fmt.Sprintf("%d (%x)", offset, parameter)
|
desc = fmt.Sprintf("%d (%x)", offset, parameter)
|
||||||
|
case opcode.INITSSLOT:
|
||||||
|
desc = fmt.Sprint(parameter[0])
|
||||||
|
case opcode.INITSLOT:
|
||||||
|
desc = fmt.Sprintf("%d local, %d arg", parameter[0], parameter[1])
|
||||||
case opcode.SYSCALL:
|
case opcode.SYSCALL:
|
||||||
desc = fmt.Sprintf("%q", parameter)
|
desc = fmt.Sprintf("%q", parameter)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue