mirror of https://github.com/PCSX2/pcsx2.git
x86emitter: inc/dec are illegal on x86_64
This commit is contained in:
parent
f2ecfc99ad
commit
16057d8b04
|
@ -994,6 +994,10 @@ void xImpl_IncDec::operator()( const xRegisterInt& to ) const
|
||||||
}
|
}
|
||||||
else
|
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();
|
to.prefix16();
|
||||||
xWrite8( (isDec ? 0x48 : 0x40) | to.Id );
|
xWrite8( (isDec ? 0x48 : 0x40) | to.Id );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue