diff --git a/parser/tokenise.go b/parser/tokenise.go index 31aafd8..a696687 100644 --- a/parser/tokenise.go +++ b/parser/tokenise.go @@ -139,15 +139,15 @@ func reduceInst(inst Instruction) (bool, Instruction) { case opAddDp: return true, Instruction{opSkip, inst.operand} case opSkip: - return true, Instruction{opSkip, inst.operand} + return true, inst case opAddVal: return true, Instruction{opSetVal, 0} case opSetVal: - return true, Instruction{opSetVal, 0} + return true, inst case opMove: - return true, Instruction{opMove, inst.operand} + return true, inst case opMovN: - return true, Instruction{opMovN, inst.operand} + return true, inst default: return false, Instruction{opNoop, 0} }