Halt to halt the VM
Some checks failed
Build / build (push) Failing after 6m4s
Publish Image / publish (push) Failing after 25s
Test / build (push) Failing after 5m49s

This commit is contained in:
Chuck Smith
2024-03-30 14:17:20 -04:00
parent 3b6df3e813
commit c8de195ac8
4 changed files with 74 additions and 19 deletions

View File

@@ -62,6 +62,7 @@ const (
OpGetFree
OpCurrentClosure
OpLoadModule
OpHalt
)
type Definition struct {
@@ -113,6 +114,7 @@ var definitions = map[Opcode]*Definition{
OpGetFree: {"OpGetFree", []int{1}},
OpCurrentClosure: {"OpCurrentClosure", []int{}},
OpLoadModule: {"OpLoadModule", []int{}},
OpHalt: {"OpHalt", []int{}},
}
func Lookup(op byte) (*Definition, error) {