This commit is contained in:
Ced2911 2013-08-19 13:56:15 +02:00
parent dd83a922bd
commit 8731b666cf
2 changed files with 6 additions and 0 deletions

View file

@ -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));

View file

@ -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);