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 GitHub
parent 01c8e2a8dc
commit 6b0f736d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;