From ec8f0804912eb12b1dc4be24201eadee409bda97 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 28 Jan 2013 01:50:25 -0800 Subject: [PATCH] Fix the emitter assert. --- Common/x64Emitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/x64Emitter.cpp b/Common/x64Emitter.cpp index a423f03762..516dfa5fb6 100644 --- a/Common/x64Emitter.cpp +++ b/Common/x64Emitter.cpp @@ -163,7 +163,7 @@ void OpArg::WriteRex(XEmitter *emit, int opBits, int bits, int customOp) const _dbg_assert_(DYNA_REC, (indexReg & 8) == 0); _dbg_assert_(DYNA_REC, (offsetOrBaseReg & 8) == 0); _dbg_assert_(DYNA_REC, opBits != 8 || (customOp & 0x10c) != 4 || customOp == -1); - _dbg_assert_(DYNA_REC, bits != 8 || (offsetOrBaseReg & 0x10c) != 4); + _dbg_assert_(DYNA_REC, scale == SCALE_ATREG || bits != 8 || (offsetOrBaseReg & 0x10c) != 4); #endif }