summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2019-12-20 19:50:14 -0600
committer cracyc <cracyc@users.noreply.github.com>2019-12-20 19:50:14 -0600
commit8b6f7bc825f2fdd3ad0717a038f2898e6a8b8510 (patch)
tree94214d2536a558d29b6b19ff2dd250ba4b4079f3 /src/devices/cpu
parent218929d6a294cded6fd3c545d1a12b34f88ecca4 (diff)
i386: save opcode too (nw)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r--src/devices/cpu/i386/x87ops.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/cpu/i386/x87ops.hxx b/src/devices/cpu/i386/x87ops.hxx
index b06db8e21c8..8b80441345b 100644
--- a/src/devices/cpu/i386/x87ops.hxx
+++ b/src/devices/cpu/i386/x87ops.hxx
@@ -146,6 +146,7 @@ uint32_t i386_device::Getx87EA(uint8_t modrm, int rwn)
m_x87_data_ptr = ea;
else
m_x87_data_ptr = ea + (segment << 4);
+ m_x87_opcode = ((m_opcode << 8) | modrm) & 0x7ff;
return ret;
}