This commit is contained in:
Ced2911 2013-08-15 14:18:23 +02:00
parent eb177f943f
commit 42860a579c
2 changed files with 8 additions and 1 deletions

View File

@ -358,7 +358,11 @@ namespace PpcGen {
u32 instr = (0x7C000378 | (Ra << 21) | (Rd << 16) | (Rb << 11));
Write32(instr);
}
void PPCXEmitter::XOR(PPCReg Rd, PPCReg Ra, PPCReg Rb) {
u32 instr = (0x7C000278 | (Ra << 21) | (Rd << 16) | (Rb << 11));
Write32(instr);
}
void PPCXEmitter::SUBF(PPCReg Rd, PPCReg Ra, PPCReg Rb, int RCFlags) {
u32 instr = (0x7C000050 | (Rd << 21) | (Ra << 16) | (Rb << 11) | (RCFlags & 1));

View File

@ -226,6 +226,9 @@ public:
void ADDI (PPCReg Rd, PPCReg Ra, short imm);
void ADDIS (PPCReg Rd, PPCReg Ra, short imm);
void ADDC (PPCReg Rd, PPCReg Ra, PPCReg Rb);
void SUB (PPCReg Rd, PPCReg Ra, PPCReg Rb) {
SUBF(Rd, Ra, Rb);
}
void SUBF (PPCReg Rd, PPCReg Ra, PPCReg Rb, int RCFlags = 0);
void SUBFC (PPCReg Rd, PPCReg Ra, PPCReg Rb);