First program generation

This commit is contained in:
Ian Gulliver
2021-11-20 19:25:16 -10:00
parent f6a598a559
commit a5a4c49e37
10 changed files with 28 additions and 13 deletions

View File

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