diff --git a/Common/ppcEmitter.cpp b/Common/ppcEmitter.cpp index 4e742b1bbc..cd2872b4b8 100644 --- a/Common/ppcEmitter.cpp +++ b/Common/ppcEmitter.cpp @@ -357,6 +357,11 @@ namespace PpcGen { u32 instr = (0x60000000 | (src << 21) | (dest << 16) | (imm & 0xffff)); Write32(instr); } + + void PPCXEmitter::XORI (PPCReg src, PPCReg dest, unsigned short imm) { + u32 instr = (0x68000000 | (src << 21) | (dest << 16) | (imm & 0xffff)); + Write32(instr); + } void PPCXEmitter::OR(PPCReg Rd, PPCReg Ra, PPCReg Rb) { u32 instr = (0x7C000378 | (Ra << 21) | (Rd << 16) | (Rb << 11)); diff --git a/Common/ppcEmitter.h b/Common/ppcEmitter.h index d68bce65ce..511ac7e8e0 100644 --- a/Common/ppcEmitter.h +++ b/Common/ppcEmitter.h @@ -242,6 +242,7 @@ namespace PpcGen void MULHWS(PPCReg dest, PPCReg src, PPCReg op2); void ORI (PPCReg src, PPCReg dest, unsigned short imm); + void XORI (PPCReg src, PPCReg dest, unsigned short imm); // Memory load/store operations void LI (PPCReg dest, unsigned short imm);