summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-09-02 21:06:53 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-09-02 21:07:04 -0400
commit51d961c73e247a7784c8ff2a463a94c3df486c9c (patch)
tree73b46cade49fdda872ada08974122b861d198210
parentfd99568b8cf343953eb2f7bbe142cde470bd6c59 (diff)
unsp: Fix disassembly of unsigned*signed multiply instructions
-rw-r--r--src/devices/cpu/unsp/unspdasm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/unsp/unspdasm.cpp b/src/devices/cpu/unsp/unspdasm.cpp
index 142731db9f1..5ace5c9e255 100644
--- a/src/devices/cpu/unsp/unspdasm.cpp
+++ b/src/devices/cpu/unsp/unspdasm.cpp
@@ -115,7 +115,7 @@ void unsp_disassembler::print_mul(std::ostream& stream, uint16_t op)
int srs = (op & 0x1000) >> 12;
// (op & 0xe000) >> 13; fixed 111
- int sign = (srs << 1) | srd;
+ int sign = (srd << 1) | srs;
util::stream_format(stream, "MR = %s*%s, %s", regs[rd], regs[rs], signmodes[sign] );
}
@@ -130,7 +130,7 @@ void unsp_disassembler::print_muls(std::ostream& stream, uint16_t op)
int srs = (op & 0x1000) >> 12;
// (op & 0xe000) >> 13; fixed 111
- int sign = (srs << 1) | srd;
+ int sign = (srd << 1) | srs;
if (size == 0) size = 16;
util::stream_format(stream, "MR = [%s]*[%s], %s, %d", regs[rd], regs[rs], signmodes[sign], size );