From dc03095a7d0563f7c611f2b28d86b81ddfb20cf2 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 1 Dec 2019 17:08:44 -0500 Subject: dp8344: Fix SHL disassembly --- src/devices/cpu/bcp/bcpdasm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/bcp/bcpdasm.cpp b/src/devices/cpu/bcp/bcpdasm.cpp index 84b77327f37..c9754d3d568 100644 --- a/src/devices/cpu/bcp/bcpdasm.cpp +++ b/src/devices/cpu/bcp/bcpdasm.cpp @@ -387,7 +387,7 @@ offs_t dp8344_disassembler::disassemble(std::ostream &stream, offs_t pc, const d // C900-C9FF: SHL Rsd,b (2 T-states) util::stream_format(stream, "%-8s", "shl"); format_register(stream, inst & 0x001f); - util::stream_format(stream, ",%d", (inst & 0x00e0) >> 5); + util::stream_format(stream, ",%d", 8 - ((inst & 0x00e0) >> 5)); break; case 0xa00: case 0xa80: -- cgit v1.2.3