x86emitter: inc/dec are illegal on x86_64

This commit is contained in:
Gregory Hainaut 2016-01-17 12:07:03 +01:00
parent f2ecfc99ad
commit 16057d8b04
1 changed files with 4 additions and 0 deletions

View File

@ -994,6 +994,10 @@ void xImpl_IncDec::operator()( const xRegisterInt& to ) const
}
else
{
#ifdef __x86_64__
pxAssertMsg(0, "Single Byte INC/DEC aren't valid in 64 bits."
"You need to use the ModR/M form (FF/0 FF/1 opcodes)");
#endif
to.prefix16();
xWrite8( (isDec ? 0x48 : 0x40) | to.Id );
}