mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 08:45:46 -04:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user