Skip to content

Commit 06a244b

Browse files
authored
fix incorrect disassembly of MOV rx_fifo (#2067)
1 parent c2118cc commit 06a244b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/pioasm/pio_disassembler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ std::string disassemble(uint inst, uint sideset_bits_including_opt, bool sideset
9090
invalid = true;
9191
} else {
9292
std::string index;
93-
if (arg2 & 8) index = "y";
94-
else index = std::to_string(arg2 & 7);
93+
if (arg2 & 8) index = std::to_string(arg2 & 3);
94+
else index = "y";
9595
std::string guts = "";
9696
op("mov");
9797
if (arg1 & 4) {

0 commit comments

Comments
 (0)