diff options
| author | iCatButler <i.am.catbutler@gmail.com> | 2016-03-26 10:07:46 +0000 |
|---|---|---|
| committer | iCatButler <i.am.catbutler@gmail.com> | 2016-03-26 10:07:46 +0000 |
| commit | b1f5a6ce4d7b9156910078300bfdf4ff0fd8ccf0 (patch) | |
| tree | 4c58fda9c7fe906b59c482165adcd041c4ab37ac /libpcsxcore/ix86 | |
| parent | 7767ea4acbae995cd8e6302bdb7c97e89748dfd8 (diff) | |
| download | pcsxr-b1f5a6ce4d7b9156910078300bfdf4ff0fd8ccf0.tar.gz | |
- Move pgxp_gpu source files into correct folder.
- Trace 16 bit reads and writes, invalidate register or memory (fixes UI glitches)
Diffstat (limited to 'libpcsxcore/ix86')
| -rwxr-xr-x | libpcsxcore/ix86/iR3000A.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libpcsxcore/ix86/iR3000A.c b/libpcsxcore/ix86/iR3000A.c index d18c47ec..42800fb2 100755 --- a/libpcsxcore/ix86/iR3000A.c +++ b/libpcsxcore/ix86/iR3000A.c @@ -1373,15 +1373,16 @@ static void recLH() { // SysPrintf("unhandled r16 %x\n", addr); } + PUSH32I(psxRegs.code); // iCB: Needed to extract reg and opcode iPushOfB(); - CALLFunc((u32)psxMemRead16); + CALLFunc((u32)PGXP_psxMemRead16Trace); if (_Rt_) { iRegs[_Rt_].state = ST_UNK; MOVSX32R16toR(EAX, EAX); MOV32RtoM((u32)&psxRegs.GPR.r[_Rt_], EAX); } // ADD32ItoR(ESP, 4); - resp+= 4; + resp+= 8; } static void recLHU() { @@ -1467,15 +1468,16 @@ static void recLHU() { // SysPrintf("unhandled r16u %x\n", addr); } + PUSH32I(psxRegs.code); // iCB: Needed to extract reg and opcode iPushOfB(); - CALLFunc((u32)psxMemRead16); + CALLFunc((u32)PGXP_psxMemRead16Trace); if (_Rt_) { iRegs[_Rt_].state = ST_UNK; MOVZX32R16toR(EAX, EAX); MOV32RtoM((u32)&psxRegs.GPR.r[_Rt_], EAX); } // ADD32ItoR(ESP, 4); - resp+= 4; + resp+= 8; } static void recLW() { @@ -1891,15 +1893,16 @@ static void recSH() { // SysPrintf("unhandled w16 %x\n", addr); } + PUSH32I(psxRegs.code); // iCB: Needed to extract reg and opcode if (IsConst(_Rt_)) { PUSH32I (iRegs[_Rt_].k); } else { PUSH32M ((u32)&psxRegs.GPR.r[_Rt_]); } iPushOfB(); - CALLFunc((u32)psxMemWrite16); + CALLFunc((u32)PGXP_psxMemWrite16Trace); // ADD32ItoR(ESP, 8); - resp+= 8; + resp+= 12; } static void recSW() { |
