mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-27 16:33:21 +00:00
ppcopcodes: Fix subfic.
This commit is contained in:
parent
7432369162
commit
4430fd89a9
@ -331,6 +331,9 @@ void dppc_interpreter::ppc_subfc() {
|
|||||||
void dppc_interpreter::ppc_subfic() {
|
void dppc_interpreter::ppc_subfic() {
|
||||||
ppc_grab_regsdasimm();
|
ppc_grab_regsdasimm();
|
||||||
ppc_result_d = simm - ppc_result_a;
|
ppc_result_d = simm - ppc_result_a;
|
||||||
|
if (simm == -1)
|
||||||
|
ppc_state.spr[SPR::XER] |= XER::CA;
|
||||||
|
else
|
||||||
ppc_carry(~ppc_result_a, ppc_result_d);
|
ppc_carry(~ppc_result_a, ppc_result_d);
|
||||||
ppc_store_result_regd();
|
ppc_store_result_regd();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user