From abb1dd5f366ce674eb9a645f1bb1cd71ce952b03 Mon Sep 17 00:00:00 2001 From: "therealmogminer@gmail.com" Date: Thu, 26 Mar 2015 12:39:42 +0100 Subject: [PATCH] Forgot to hit save, nw --- src/emu/cpu/mips/mips3.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/emu/cpu/mips/mips3.c b/src/emu/cpu/mips/mips3.c index c3c97c4713d..646f010555f 100644 --- a/src/emu/cpu/mips/mips3.c +++ b/src/emu/cpu/mips/mips3.c @@ -2454,20 +2454,22 @@ inline void mips3_device::handle_integer_divide_by_zero(UINT32 op) { if (RSVAL32 >= 0) { - LOVAL64 = -1; + LOVAL64 = (INT32)0x7fffffff; } else { - LOVAL64 = 1; + LOVAL64 = (INT32)0x80000001; } } else { if (RSVAL32 >= 0) { + LOVAL64 = -1; } else { + LOVAL64 = 1; } } }