Skip to content

Commit

Permalink
fix incorrect disassembly of MOV rx_fifo (#2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham authored Nov 20, 2024
1 parent c2118cc commit 06a244b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/pioasm/pio_disassembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ std::string disassemble(uint inst, uint sideset_bits_including_opt, bool sideset
invalid = true;
} else {
std::string index;
if (arg2 & 8) index = "y";
else index = std::to_string(arg2 & 7);
if (arg2 & 8) index = std::to_string(arg2 & 3);
else index = "y";
std::string guts = "";
op("mov");
if (arg1 & 4) {
Expand Down

0 comments on commit 06a244b

Please sign in to comment.