summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/unsp/unspdasm_exxx.cpp
diff options
context:
space:
mode:
author David Haywood <28625134+DavidHaywood@users.noreply.github.com>2020-05-25 15:58:09 +0100
committer GitHub <noreply@github.com>2020-05-25 16:58:09 +0200
commitad7a31ad57b09e1e0e9bb1adb03767f9dd386605 (patch)
treec6ebe406df3e406c93b776b535e9d889bd9f1d1a /src/devices/cpu/unsp/unspdasm_exxx.cpp
parent96e2e7ab7e054cad2079afff529759dfb06737c1 (diff)
unsp20 - fix opcode decode priority, we causing an ASR operation to be decoded as a MUL [David Haywood] (#6740)
Diffstat (limited to 'src/devices/cpu/unsp/unspdasm_exxx.cpp')
-rw-r--r--src/devices/cpu/unsp/unspdasm_exxx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/unsp/unspdasm_exxx.cpp b/src/devices/cpu/unsp/unspdasm_exxx.cpp
index 43c494cc0a5..c9d95d2d072 100644
--- a/src/devices/cpu/unsp/unspdasm_exxx.cpp
+++ b/src/devices/cpu/unsp/unspdasm_exxx.cpp
@@ -87,14 +87,14 @@ offs_t unsp_12_disassembler::disassemble_exxx_group(std::ostream& stream, offs_t
util::stream_format(stream, "%s ds:[%s],%s", bitops[bitop], regs[rd], regs[rs]);
return UNSP_DASM_OK;
}
- else if (((op & 0xf0f8) == 0xe008))
+ else if (((op & 0xf1f8) == 0xe008))
{
// MUL operations
// MUL 1 1 1 0* r r r S* 0 0 0 0 1 r r r (* = sign bit, fixed here)
print_mul(stream, op); // MUL uu or MUL su (invalid?)
return UNSP_DASM_OK;
}
- else if (((op & 0xf080) == 0xe080))
+ else if (((op & 0xf180) == 0xe080))
{
// MULS 1 1 1 0* r r r S* 1 s s s s r r r (* = sign bit, fixed here)