mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
pioasm: python output incorrectly rendered mov x, ~x as nop() (#1053)
This affects all move operations where source and destination are the same but with an operation applied, ex: mov y, ::y, mov osr, ~osr, etc
This commit is contained in:
parent
24bb3627cf
commit
6f1fc56833
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ struct python_output : public output_format {
|
||||||
if (source.empty() || dest.empty() || operation == 3) {
|
if (source.empty() || dest.empty() || operation == 3) {
|
||||||
invalid = true;
|
invalid = true;
|
||||||
}
|
}
|
||||||
if (dest == source && (arg1 == 1 || arg2 == 2)) {
|
if (dest == source && (arg1 == 1 || arg2 == 2) && operation == 0) {
|
||||||
op("nop");
|
op("nop");
|
||||||
op_guts("");
|
op_guts("");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue