x86emitter: add x64 to push/pop

This commit is contained in:
Gregory Hainaut 2016-01-16 23:25:30 +01:00
parent ef21a8dbd0
commit eb4db2152c
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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 ); }