Permalink
Browse files

x64Emitter: Amend parameter ordering for WriteModRM()'s prototype

The definition of the function uses the ordering {mod, reg, rm}, which
is correct. Match the prototype to this, so that the parameter list
isn't misleading.
  • Loading branch information...
lioncash committed May 30, 2018
1 parent 4fb2d58 commit 81e11b2406ed9d1a083adf96637435f061e56e29
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/Common/x64Emitter.h
@@ -342,7 +342,7 @@ class XEmitter
void CheckFlags();
void Rex(int w, int r, int x, int b);
void WriteModRM(int mod, int rm, int reg);
void WriteModRM(int mod, int reg, int rm);
void WriteSIB(int scale, int index, int base);
void WriteSimple1Byte(int bits, u8 byte, X64Reg reg);
void WriteSimple2Byte(int bits, u8 byte1, u8 byte2, X64Reg reg);

0 comments on commit 81e11b2

Please sign in to comment.