From acc5ed0b35d2b4f23b1d1c23e99165ed1d5c740c Mon Sep 17 00:00:00 2001 From: Patrick Mackinlay Date: Mon, 18 Jul 2022 11:19:39 +0700 Subject: ns32081: invalid operations generate exceptions --- src/devices/machine/ns32081.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/devices/machine/ns32081.cpp b/src/devices/machine/ns32081.cpp index c158a7e8942..a436a823582 100644 --- a/src/devices/machine/ns32081.cpp +++ b/src/devices/machine/ns32081.cpp @@ -570,7 +570,10 @@ void ns32081_device::execute() m_status |= SLAVE_Q; } else if (softfloat_exceptionFlags & softfloat_flag_invalid) + { m_fsr |= TT_INV; + m_status |= SLAVE_Q; + } else if (softfloat_exceptionFlags & softfloat_flag_inexact) { m_fsr |= FSR_IF | TT_INX; -- cgit v1.2.3