Skip to content

Commit

Permalink
tiny tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmorgan committed Apr 29, 2024
1 parent e0242bb commit bb07891
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions parser/tokenise.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb07891

Please sign in to comment.