diff --git a/tools/pioasm/python_output.cpp b/tools/pioasm/python_output.cpp index e932baf..32a50bb 100644 --- a/tools/pioasm/python_output.cpp +++ b/tools/pioasm/python_output.cpp @@ -255,7 +255,7 @@ struct python_output : public output_format { if (source.empty() || dest.empty() || operation == 3) { invalid = true; } - if (dest == source && (arg1 == 1 || arg2 == 2)) { + if (dest == source && (arg1 == 1 || arg2 == 2) && operation == 0) { op("nop"); op_guts(""); } else {