fixup not/reverse for pioasm python output (#146)

This commit is contained in:
Graham Sanderson 2021-02-18 10:04:06 -06:00 committed by graham sanderson
parent dee8bd992c
commit 0828178561

View File

@ -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;