From bb07891f2c5579446ec86acb30ffc412772fd6ff Mon Sep 17 00:00:00 2001 From: Tristan Morgan Date: Mon, 29 Apr 2024 15:20:05 +1000 Subject: [PATCH] tiny tweak. --- parser/tokenise.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parser/tokenise.go b/parser/tokenise.go index 265e469..9f5382f 100644 --- a/parser/tokenise.go +++ b/parser/tokenise.go @@ -73,8 +73,7 @@ func Tokenise(input io.ByteReader) (program []Instruction, err error) { } else if pc-jmpPc == 5 && // [<<++++>>-] program[pc-4].Complement(program[pc-2]) && program[pc-3].SameOp(NewInstruction('+')) && - program[pc-1].SameOp(NewInstruction('-')) && - program[pc-1].operand == -1 { + program[pc-1].Complement(NewInstruction('+')) { offset := program[pc-4].operand factor := program[pc-3].operand pc = jmpPc