vm: extend PrintOps() with INITSSLOT & INITSLOT

This commit is contained in:
Evgenii Stratonikov 2020-06-26 19:34:49 +03:00
parent 82417499d7
commit bdaffe75cb

View file

@ -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: