From b34fe2b8f1915d5ec46db26362d2e59062e6c240 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 25 Jan 2014 17:33:31 +0100 Subject: [PATCH] x64: fix parameter names of WriteModRM() --- Source/Core/Common/x64Emitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/x64Emitter.cpp b/Source/Core/Common/x64Emitter.cpp index 05540ba4a8..76e235ebcd 100644 --- a/Source/Core/Common/x64Emitter.cpp +++ b/Source/Core/Common/x64Emitter.cpp @@ -112,9 +112,9 @@ const u8 *XEmitter::AlignCodePage() return code; } -void XEmitter::WriteModRM(int mod, int rm, int reg) +void XEmitter::WriteModRM(int mod, int reg, int rm) { - Write8((u8)((mod << 6) | ((rm & 7) << 3) | (reg & 7))); + Write8((u8)((mod << 6) | ((reg & 7) << 3) | (rm & 7))); } void XEmitter::WriteSIB(int scale, int index, int base)