summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-12-30 20:07:52 -0500
committer AJR <ajrhacker@users.noreply.github.com>2019-12-30 20:07:52 -0500
commitd7a32a00235295c1db77ff86f7fb3397680eedb5 (patch)
tree9633a2244b7734952186c21b9a23413db0fcd8ef
parent56282074cb5225c87d1c0e0445fec6861d163e5d (diff)
we32100: Fix disassembly of expanded-operand type modes (nw)
-rw-r--r--src/devices/cpu/we32000/we32100d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/we32000/we32100d.cpp b/src/devices/cpu/we32000/we32100d.cpp
index c33aba03290..2552c60b5fe 100644
--- a/src/devices/cpu/we32000/we32100d.cpp
+++ b/src/devices/cpu/we32000/we32100d.cpp
@@ -167,9 +167,9 @@ void we32100_disassembler::dasm_am(std::ostream &stream, offs_t &pc, const we321
util::stream_format(stream, "reserved(0x%02x)", n);
else
{
- if (!BIT(n, 0))
+ if (!BIT(n, 1))
util::stream_format(stream, "{%cword}", BIT(n, 2) ? 's' : 'u');
- else if (!BIT(n, 1))
+ else if (!BIT(n, 0))
util::stream_format(stream, "{%chalf}", BIT(n, 2) ? 's' : 'u');
else
util::stream_format(stream, "{%cbyte}", BIT(n, 2) ? 's' : 'u');