Fix jump functions

master
Jonas Franz 5 years ago
parent 059c84e30a
commit 8576f7e3da
Signed by: JonasFranzDEV
GPG Key ID: 7293A220B7C38080
  1. 2
      hal/instructions.go

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

Loading…
Cancel
Save