mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
fixup not/reverse for pioasm python output (#146)
This commit is contained in:
parent
dee8bd992c
commit
0828178561
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue