mirror of https://github.com/PCSX2/pcsx2.git
x86emitter: add x64 to push/pop
This commit is contained in:
parent
ef21a8dbd0
commit
eb4db2152c
|
@ -151,10 +151,10 @@ namespace x86Emitter
|
|||
extern void xPOP( const xIndirectVoid& from );
|
||||
extern void xPUSH( const xIndirectVoid& from );
|
||||
|
||||
extern void xPOP( xRegister32 from );
|
||||
extern void xPOP( xRegister32or64 from );
|
||||
|
||||
extern void xPUSH( u32 imm );
|
||||
extern void xPUSH( xRegister32 from );
|
||||
extern void xPUSH( xRegister32or64 from );
|
||||
|
||||
// pushes the EFLAGS register onto the stack
|
||||
extern void xPUSHFD();
|
||||
|
|
|
@ -1034,10 +1034,10 @@ __emitinline void xPUSH( const xIndirectVoid& from )
|
|||
EmitSibMagic( 6, from );
|
||||
}
|
||||
|
||||
__fi void xPOP( xRegister32 from ) { xWrite8( 0x58 | from.Id ); }
|
||||
__fi void xPOP( xRegister32or64 from ) { xWrite8( 0x58 | from->Id ); }
|
||||
|
||||
__fi void xPUSH( u32 imm ) { xWrite8( 0x68 ); xWrite32( imm ); }
|
||||
__fi void xPUSH( xRegister32 from ) { xWrite8( 0x50 | from.Id ); }
|
||||
__fi void xPUSH( xRegister32or64 from ) { xWrite8( 0x50 | from->Id ); }
|
||||
|
||||
// pushes the EFLAGS register onto the stack
|
||||
__fi void xPUSHFD() { xWrite8( 0x9C ); }
|
||||
|
|
Loading…
Reference in New Issue