mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00: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:
parent
5516b0382c
commit
9b9817f927
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue