diff --git a/tools/pioasm/python_output.cpp b/tools/pioasm/python_output.cpp index 5e68458..5964d55 100644 --- a/tools/pioasm/python_output.cpp +++ b/tools/pioasm/python_output.cpp @@ -260,11 +260,14 @@ struct python_output : public output_format { op("mov"); std::string guts = dest + ", "; if (operation == 1) { - guts += "not "; + guts += "invert("; } else if (operation == 2) { - guts += "reverse "; + guts += "reverse("; } guts += source; + if (operation == 1 || operation == 2) { + guts += ")"; + } op_guts(guts); } break;