CPU/Recompiler: Detect move instructions and forward to PGXP
Fixes holes in polygons in Gran Turismo 1 + 2 with PGXP enabled.
This commit is contained in:
parent
0b858658ca
commit
8a91395566
3 changed files with 18 additions and 0 deletions
|
|
@ -870,6 +870,13 @@ void CPU_SW(u32 instr, u32 rtVal, u32 addr)
|
|||
WriteMem(&CPU_reg[rt(instr)], addr);
|
||||
}
|
||||
|
||||
void CPU_MOVE(u32 rd_and_rs, u32 rsVal)
|
||||
{
|
||||
const u32 Rs = (rd_and_rs & 0xFFu);
|
||||
Validate(&CPU_reg[Rs], rsVal);
|
||||
CPU_reg[(rd_and_rs >> 8)] = CPU_reg[Rs];
|
||||
}
|
||||
|
||||
void CPU_ADDI(u32 instr, u32 rtVal, u32 rsVal)
|
||||
{
|
||||
// Rt = Rs + Imm (signed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue