mirror of https://github.com/PCSX2/pcsx2.git
core|x86emitter: port basic jump instruction
This commit is contained in:
parent
b09295fc7c
commit
834cc3f2c5
|
@ -45,10 +45,6 @@ ATTR_DEP extern u8* JMP8( u8 to );
|
|||
|
||||
// jmp rel32
|
||||
ATTR_DEP extern u32* JMP32( uptr to );
|
||||
// jmp r32 (r64 if __x86_64__)
|
||||
ATTR_DEP extern void JMPR( x86IntRegType to );
|
||||
// jmp m32
|
||||
ATTR_DEP extern void JMP32M( uptr to );
|
||||
|
||||
// jp rel8
|
||||
ATTR_DEP extern u8* JP8( u8 to );
|
||||
|
|
|
@ -169,18 +169,6 @@ emitterT u32* JMP32( uptr to )
|
|||
return (u32*)(x86Ptr - 4 );
|
||||
}
|
||||
|
||||
/* jmp r32/r64 */
|
||||
emitterT void JMPR( x86IntRegType to )
|
||||
{
|
||||
xJMP( xRegister32(to) );
|
||||
}
|
||||
|
||||
// jmp m32
|
||||
emitterT void JMP32M( uptr to )
|
||||
{
|
||||
xJMP( ptr32[(u32*)to] );
|
||||
}
|
||||
|
||||
/* jp rel8 */
|
||||
emitterT u8* JP8( u8 to ) {
|
||||
return J8Rel( 0x7A, to );
|
||||
|
|
|
@ -3113,9 +3113,9 @@ void VuBaseBlock::Recompile()
|
|||
SuperVUTestVU0Condition(0);
|
||||
|
||||
if (s_JumpX86 == -1)
|
||||
JMP32M((uptr)&g_recWriteback);
|
||||
xJMP(ptr32[&g_recWriteback]);
|
||||
else
|
||||
JMPR(s_JumpX86);
|
||||
xJMP(xRegister32(s_JumpX86));
|
||||
|
||||
break;
|
||||
case 4: // jalr
|
||||
|
@ -3132,7 +3132,7 @@ void VuBaseBlock::Recompile()
|
|||
// already onto stack
|
||||
xCALL((void*)(uptr)SuperVUGetProgram);
|
||||
xADD(esp, 8);
|
||||
JMPR(EAX);
|
||||
xJMP(eax);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue