summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/i8087.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/i8087.cpp')
-rw-r--r--src/devices/machine/i8087.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/devices/machine/i8087.cpp b/src/devices/machine/i8087.cpp
index ffa18dfb4d4..896b30014ba 100644
--- a/src/devices/machine/i8087.cpp
+++ b/src/devices/machine/i8087.cpp
@@ -423,7 +423,11 @@ int i8087_device::check_exceptions(bool store)
if ((m_sw & ~m_cw) & 0x3f)
{
// interrupt handler
- if (!(m_cw & X87_CW_IEM)) { m_sw |= X87_SW_ES; m_int_handler(1); }
+ if (!(m_cw & X87_CW_IEM))
+ {
+ m_sw |= X87_SW_ES;
+ m_int_handler(1);
+ }
logerror("Unmasked x87 exception (CW:%.4x, SW:%.4x)\n", m_cw, m_sw);
if (store || !(unmasked & (X87_SW_OE | X87_SW_UE)))
return 0;
@@ -2141,7 +2145,8 @@ void i8087_device::fprem1(u8 modrm)
m_sw &= ~X87_SW_C2;
- if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q)) {
+ if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q))
+ {
m_sw &= ~(X87_SW_C0|X87_SW_C3|X87_SW_C1);
if (q & 1)
m_sw |= X87_SW_C1;