diff options
author | 2012-08-12 17:44:47 +0000 | |
---|---|---|
committer | 2012-08-12 17:44:47 +0000 | |
commit | 9f2eed0496da425929be92715e22d4a4b92a08f4 (patch) | |
tree | 33718b66a74b7b7faa177adc017f1f8b4eaa69c4 /src/emu/cpu/drcbec.c | |
parent | b62faaa62d33a16dd604c5b71139bb3930754663 (diff) |
drcbec: Calculate NZ flags properly for 32x32=32 form of MULS. [R. Belmont]
Diffstat (limited to 'src/emu/cpu/drcbec.c')
-rw-r--r-- | src/emu/cpu/drcbec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/cpu/drcbec.c b/src/emu/cpu/drcbec.c index 36e4e509511..91d961f5d1c 100644 --- a/src/emu/cpu/drcbec.c +++ b/src/emu/cpu/drcbec.c @@ -1007,7 +1007,8 @@ int drcbe_c::execute(code_handle &entry) case MAKE_OPCODE_SHORT(OP_MULS, 4, 1): temp64 = (INT64)(INT32)PARAM2 * (INT64)(INT32)PARAM3; - flags = FLAGS64_NZ(temp64); + temp32 = (INT32)temp64; + flags = FLAGS32_NZ(temp32); PARAM1 = temp64 >> 32; PARAM0 = (UINT32)temp64; if (temp64 != (INT32)temp64) |