From d831eff5a2b5234acdaae350e2ef2aeb3b04b0b1 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Sat, 8 Jan 2022 19:55:23 +0000 Subject: [PATCH] fix pioasm python output (#694) (#695) Issue: irq wait 0 irq 0 are translated as: irq(wait, 0) # 0 irq(nowait, 0) # 1 wait/nowait are incorrect, should be block or ommited (alt: noblock). After change: irq(block, 0) # 0 irq(0) # 1 --- tools/pioasm/python_output.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/pioasm/python_output.cpp b/tools/pioasm/python_output.cpp index 38f7ffe..e932baf 100644 --- a/tools/pioasm/python_output.cpp +++ b/tools/pioasm/python_output.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. + * Copyright (c) 2021 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -283,9 +283,7 @@ struct python_output : public output_format { if (arg1 & 0x2u) { guts += "clear, "; } else if (arg1 & 0x1u) { - guts += "wait, "; - } else { - guts += "nowait, "; + guts += "block, "; } auto irq = std::to_string(arg2 & 7u); if (arg2 & 0x10u) {