mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +00:00
Fix mulhw/mulhw. emulation.
This commit is contained in:
parent
ddae141c22
commit
99e8bc98f3
@ -891,15 +891,15 @@ void ppc_mulhwudot() {
|
||||
|
||||
void ppc_mulhw() {
|
||||
ppc_grab_regsdab();
|
||||
siproduct = (int64_t)ppc_result_a * (int64_t)ppc_result_b;
|
||||
ppc_result_d = (uint32_t)(siproduct >> 32);
|
||||
siproduct = (int64_t)(int32_t)ppc_result_a * (int64_t)(int32_t)ppc_result_b;
|
||||
ppc_result_d = siproduct >> 32;
|
||||
ppc_store_result_regd();
|
||||
}
|
||||
|
||||
void ppc_mulhwdot() {
|
||||
ppc_grab_regsdab();
|
||||
siproduct = (int64_t)ppc_result_a * (int64_t)ppc_result_b;
|
||||
ppc_result_d = (uint32_t)(siproduct >> 32);
|
||||
siproduct = (int64_t)(int32_t)ppc_result_a * (int64_t)(int32_t)ppc_result_b;
|
||||
ppc_result_d = siproduct >> 32;
|
||||
ppc_changecrf0(ppc_result_d);
|
||||
ppc_store_result_regd();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user