Halt to halt the VM
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user