From 6b0f736d3bb9c4270a5ecca42d3e093308c12d67 Mon Sep 17 00:00:00 2001 From: Graham Sanderson Date: Thu, 18 Feb 2021 10:04:06 -0600 Subject: [PATCH] fixup not/reverse for pioasm python output (#146) --- tools/pioasm/python_output.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;