debug: add a nop between EE instruction in dev build

This way it is easier to detect the boundary in the x86 asm block
This commit is contained in:
Gregory Hainaut 2015-12-22 16:26:44 +01:00
parent d78f887d1c
commit 162bf3d22d
1 changed files with 4 additions and 1 deletions

View File

@ -1297,8 +1297,11 @@ void recompileNextInstruction(int delayslot)
s_pCode = (int *)PSM( pc );
pxAssert(s_pCode);
// acts as a tag for delimiting recompiled instructions when viewing x86 disasm.
if( IsDevBuild )
xNOP();
if( IsDebugBuild )
xMOV(eax, pc); // acts as a tag for delimiting recompiled instructions when viewing x86 disasm.
xMOV(eax, pc);
cpuRegs.code = *(int *)s_pCode;