From 5f71ed09aca5d9f001ff29be11294880ba725a14 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Tue, 19 Nov 2024 20:05:08 -0600 Subject: [PATCH] fix incorrect disassembly of MOV rx_fifo --- tools/pioasm/pio_disassembler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pioasm/pio_disassembler.cpp b/tools/pioasm/pio_disassembler.cpp index eb1f4268c..2a34796d0 100644 --- a/tools/pioasm/pio_disassembler.cpp +++ b/tools/pioasm/pio_disassembler.cpp @@ -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) {