From 06a244b2b541cbfeac5d8293b30d917576997884 Mon Sep 17 00:00:00 2001 From: Graham Sanderson Date: Wed, 20 Nov 2024 10:57:22 -0600 Subject: [PATCH] fix incorrect disassembly of MOV rx_fifo (#2067) --- 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) {