mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
x64Emitter: Fix REX encoding for SETcc
Previously using the new "lower 8 bits" registers (SIL, SPL, ...) caused SETcc to write to other registers (for example, SETcc SIL would generate SETcc DH).
This commit is contained in:
@ -721,7 +721,7 @@ void XEmitter::SETcc(CCFlags flag, OpArg dest)
|
|||||||
{
|
{
|
||||||
if (dest.IsImm()) _assert_msg_(DYNA_REC, 0, "SETcc - Imm argument");
|
if (dest.IsImm()) _assert_msg_(DYNA_REC, 0, "SETcc - Imm argument");
|
||||||
dest.operandReg = 0;
|
dest.operandReg = 0;
|
||||||
dest.WriteRex(this, 0, 0);
|
dest.WriteRex(this, 0, 8);
|
||||||
Write8(0x0F);
|
Write8(0x0F);
|
||||||
Write8(0x90 + (u8)flag);
|
Write8(0x90 + (u8)flag);
|
||||||
dest.WriteRest(this);
|
dest.WriteRest(this);
|
||||||
|
Reference in New Issue
Block a user