mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
ppcopcodes: fix cror emulation.
This commit is contained in:
parent
eeb1e46889
commit
449934e0f3
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user