x86emitter: add GetPrefix16 helper

This commit is contained in:
Gregory Hainaut 2016-01-16 21:39:36 +01:00
parent be0b8cf2f5
commit 39dc8368fa
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ template< typename T > void xWrite( T val );
virtual uint GetOperandSize() const=0; virtual uint GetOperandSize() const=0;
bool Is8BitOp() const { return GetOperandSize() == 1; } bool Is8BitOp() const { return GetOperandSize() == 1; }
u8 GetPrefix16() const { return GetOperandSize() == 2 ? 0x66 : 0; }
void prefix16() const { if( GetOperandSize() == 2 ) xWrite8( 0x66 ); } void prefix16() const { if( GetOperandSize() == 2 ) xWrite8( 0x66 ); }
void xWriteImm( int imm ) const void xWriteImm( int imm ) const