From 5b1d75fb74fc4ffed969d4f26e9395f241c2f1fa Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 3 Jul 2022 19:34:39 +0200 Subject: [PATCH] disassembler fix (SWAB) --- cpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 7aaf9e2..82d89e6 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1822,7 +1822,8 @@ std::map > cpu::disassemble(const uint16_t // single_operand_instructions switch(so_opcode) { case 0b00000011: - text = "SWAB " + dst_text.operand; + if (!word_mode) + text = "SWAB " + dst_text.operand; break; case 0b000101000: