mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 05:29:43 +00:00
ppcopcodes: fix crxor.
This commit is contained in:
parent
7bdad7703c
commit
9cd7ca0077
@ -1302,7 +1302,8 @@ void dppc_interpreter::ppc_crorc() {
|
||||
}
|
||||
void dppc_interpreter::ppc_crxor() {
|
||||
ppc_grab_regsdab();
|
||||
if ((ppc_state.cr & (0x80000000UL >> reg_a)) ^ (ppc_state.cr & (0x80000000UL >> reg_b))) {
|
||||
uint8_t ir = (ppc_state.cr >> (31 - reg_a)) ^ (ppc_state.cr >> (31 - reg_b));
|
||||
if (ir & 1) {
|
||||
ppc_state.cr |= (0x80000000UL >> reg_d);
|
||||
} else {
|
||||
ppc_state.cr &= ~(0x80000000UL >> reg_d);
|
||||
|
Loading…
x
Reference in New Issue
Block a user