fixup not/reverse for pioasm python output (#146)
This commit is contained in:
parent
dee8bd992c
commit
0828178561
@ -260,11 +260,14 @@ struct python_output : public output_format {
|
|||||||
op("mov");
|
op("mov");
|
||||||
std::string guts = dest + ", ";
|
std::string guts = dest + ", ";
|
||||||
if (operation == 1) {
|
if (operation == 1) {
|
||||||
guts += "not ";
|
guts += "invert(";
|
||||||
} else if (operation == 2) {
|
} else if (operation == 2) {
|
||||||
guts += "reverse ";
|
guts += "reverse(";
|
||||||
}
|
}
|
||||||
guts += source;
|
guts += source;
|
||||||
|
if (operation == 1 || operation == 2) {
|
||||||
|
guts += ")";
|
||||||
|
}
|
||||||
op_guts(guts);
|
op_guts(guts);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user