Disassembler skeleton
This commit is contained in:
@@ -21,7 +21,11 @@ func Assemble(src []byte) (*vm.Program, error) {
|
||||
return nil, errors.Wrapf(err, "At function index %d\n", f)
|
||||
}
|
||||
|
||||
ret.Functions = append(ret.Functions, instrs)
|
||||
newFunc := &vm.Function{
|
||||
Instructions: instrs,
|
||||
}
|
||||
|
||||
ret.Functions = append(ret.Functions, newFunc)
|
||||
}
|
||||
|
||||
return ret, nil
|
||||
|
||||
Reference in New Issue
Block a user