ppcopcodes: fix cror emulation.

This commit is contained in:
Maxim Poliakovski 2019-08-13 16:58:47 +02:00
parent eeb1e46889
commit 449934e0f3

View File

@ -1818,11 +1818,11 @@ void ppc_crnor(){
void ppc_cror(){
ppc_grab_regsdab();
if ((ppc_state.ppc_cr && (0x80000000 >> reg_a)) | (ppc_state.ppc_cr && (0x80000000 >> reg_b))){
ppc_state.ppc_cr |= (0x80000000 >> reg_d);
if ((ppc_state.ppc_cr & (0x80000000UL >> reg_a)) || (ppc_state.ppc_cr & (0x80000000UL >> reg_b))){
ppc_state.ppc_cr |= (0x80000000UL >> reg_d);
}
else{
ppc_state.ppc_cr &= ~(0x80000000 >> reg_d);
ppc_state.ppc_cr &= ~(0x80000000UL >> reg_d);
}
}
void ppc_crorc(){