mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
add XORI
This commit is contained in:
parent
dd83a922bd
commit
8731b666cf
2 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue