First program generation
This commit is contained in:
@@ -23,10 +23,12 @@ func Disassemble(prog *vm.Program) (string, error) {
|
||||
|
||||
return fmt.Sprintf(`global_memory_size: %d
|
||||
function_memory_size: %d
|
||||
instruction_limit: %d
|
||||
functions:
|
||||
%s`,
|
||||
prog.GlobalMemorySize,
|
||||
prog.FunctionMemorySize,
|
||||
prog.InstructionLimit,
|
||||
strings.Join(fncs, ""),
|
||||
), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user