mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Make OpArg.offset and operandReg private.
Also cleaned up WriteRest function.
This commit is contained in:
@ -223,7 +223,7 @@ void OpArg::WriteRest(XEmitter *emit, int extraBytes, X64Reg _operandReg,
|
||||
// Oh, no memory, Just a reg.
|
||||
mod = 3; //11
|
||||
}
|
||||
else if (scale >= 1)
|
||||
else
|
||||
{
|
||||
//Ah good, no scaling.
|
||||
if (scale == SCALE_ATREG && !((_offsetOrBaseReg & 7) == 4 || (_offsetOrBaseReg & 7) == 5))
|
||||
@ -249,7 +249,7 @@ void OpArg::WriteRest(XEmitter *emit, int extraBytes, X64Reg _operandReg,
|
||||
mod = 0;
|
||||
_offsetOrBaseReg = 5;
|
||||
}
|
||||
else //if (scale != SCALE_ATREG)
|
||||
else
|
||||
{
|
||||
if ((_offsetOrBaseReg & 7) == 4) //this would occupy the SIB encoding :(
|
||||
{
|
||||
@ -288,10 +288,6 @@ void OpArg::WriteRest(XEmitter *emit, int extraBytes, X64Reg _operandReg,
|
||||
if (SIB)
|
||||
oreg = 4;
|
||||
|
||||
// TODO(ector): WTF is this if about? I don't remember writing it :-)
|
||||
//if (RIP)
|
||||
// oreg = 5;
|
||||
|
||||
emit->WriteModRM(mod, _operandReg&7, oreg&7);
|
||||
|
||||
if (SIB)
|
||||
|
Reference in New Issue
Block a user