|
|
@ -127,7 +127,7 @@ var InstructionStore = &Instruction{ |
|
|
|
|
|
|
|
|
|
|
|
func newJumpInstruction(name string, doJump func(accumulator float64) bool) *Instruction { |
|
|
|
func newJumpInstruction(name string, doJump func(accumulator float64) bool) *Instruction { |
|
|
|
return &Instruction{ |
|
|
|
return &Instruction{ |
|
|
|
Name: "JUMPPOS", |
|
|
|
Name: name, |
|
|
|
ExecuteWithOperand: func(module *Module, operand float64) error { |
|
|
|
ExecuteWithOperand: func(module *Module, operand float64) error { |
|
|
|
index := int64(operand) |
|
|
|
index := int64(operand) |
|
|
|
if _, ok := module.programStorage[index]; !ok { |
|
|
|
if _, ok := module.programStorage[index]; !ok { |
|
|
|