mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-25 19:18:34 +00:00
ppcopcodes: Fix divu for MPC601.
This commit is contained in:
@@ -565,7 +565,10 @@ void dppc_interpreter::ppc_divwu(uint32_t opcode) {
|
||||
ppc_grab_regsdab(opcode);
|
||||
|
||||
if (!ppc_result_b) { // division by zero
|
||||
ppc_result_d = 0;
|
||||
if (is_601)
|
||||
ppc_result_d = -1; // tested on 601 in Mac OS 9.1
|
||||
else
|
||||
ppc_result_d = 0;
|
||||
|
||||
if (ov)
|
||||
ppc_state.spr[SPR::XER] |= XER::SO | XER::OV;
|
||||
|
||||
Reference in New Issue
Block a user