From 7b97967fe4cf44af1338639b1030f14caa56fb0e Mon Sep 17 00:00:00 2001 From: Tristan Miller Date: Mon, 25 Jan 2021 04:10:32 -0700 Subject: [PATCH] Move irq rel flag to setting bit 4 instead of bit 5 --- tools/pioasm/pio_assembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pioasm/pio_assembler.cpp b/tools/pioasm/pio_assembler.cpp index 46ea5e4..a6d0b9e 100644 --- a/tools/pioasm/pio_assembler.cpp +++ b/tools/pioasm/pio_assembler.cpp @@ -304,7 +304,7 @@ raw_encoding instr_wait::raw_encode(const program &program) { raw_encoding instr_irq::raw_encode(const program &program) { uint arg2 = num->resolve(program); if (arg2 > 7) throw syntax_error(num->location, "irq number must be must be >= 0 and <= 7"); - if (relative) arg2 |= 0x20u; + if (relative) arg2 |= 0x10u; return {inst_type::irq, (uint)modifiers, arg2}; }