mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-20 23:54:48 +00:00
sub
This commit is contained in:
parent
eb177f943f
commit
42860a579c
@ -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));
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user