Add display initial to engine execution

This commit is contained in:
lash
2023-04-06 09:14:53 +01:00
parent c748daa8f7
commit f0bfff3a20
6 changed files with 29 additions and 9 deletions

View File

@@ -37,6 +37,8 @@ func out(sym string, b []byte, tpl string) error {
func root() error {
b := []byte{}
b = vm.NewLine(b, vm.MOUT, []string{"1", "do the foo"}, nil, nil)
b = vm.NewLine(b, vm.MOUT, []string{"2", "go to the bar"}, nil, nil)
b = vm.NewLine(b, vm.HALT, nil, nil, nil)
b = vm.NewLine(b, vm.INCMP, []string{"1", "foo"}, nil, nil)
b = vm.NewLine(b, vm.INCMP, []string{"2", "bar"}, nil, nil)