Moved assembler stage processing to it's own file

This commit is contained in:
obscuren
2014-04-15 16:16:38 -04:00
parent 086acd122b
commit ca13e3b105
5 changed files with 430 additions and 213 deletions

View File

@ -71,7 +71,7 @@ func (c *Closure) Address() []byte {
type DebugHook func(step int, op OpCode, mem *Memory, stack *Stack)
func (c *Closure) Call(vm *Vm, args []byte, hook DebugHook) []byte {
func (c *Closure) Call(vm *Vm, args []byte, hook DebugHook) ([]byte, error) {
c.Args = args
return vm.RunClosure(c, hook)