Core: reorder MoveConstByteToVariable parameters
This commit is contained in:
parent
eb8b36603b
commit
bdb2d040f9
|
@ -10161,17 +10161,17 @@ void CX86RecompilerOps::SB_Const(uint32_t Value, uint32_t VAddr)
|
||||||
}
|
}
|
||||||
else if (PAddr < g_MMU->RdramSize())
|
else if (PAddr < g_MMU->RdramSize())
|
||||||
{
|
{
|
||||||
m_Assembler.MoveConstByteToVariable((uint8_t)Value, (PAddr ^ 3) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 3)", PAddr).c_str());
|
m_Assembler.MoveConstByteToVariable((PAddr ^ 3) + g_MMU->Rdram(), stdstr_f("RDRAM + (%X ^ 3)", PAddr).c_str(), (uint8_t)Value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x04000000:
|
case 0x04000000:
|
||||||
if (PAddr < 0x04001000)
|
if (PAddr < 0x04001000)
|
||||||
{
|
{
|
||||||
m_Assembler.MoveConstByteToVariable((uint8_t)Value, ((PAddr - 0x04000000) ^ 3) + g_MMU->Dmem(), stdstr_f("DMem + (%X ^ 3)", (PAddr - 0x04000000)).c_str());
|
m_Assembler.MoveConstByteToVariable(((PAddr - 0x04000000) ^ 3) + g_MMU->Dmem(), stdstr_f("DMem + (%X ^ 3)", (PAddr - 0x04000000)).c_str(), (uint8_t)Value);
|
||||||
}
|
}
|
||||||
else if (PAddr < 0x04002000)
|
else if (PAddr < 0x04002000)
|
||||||
{
|
{
|
||||||
m_Assembler.MoveConstByteToVariable((uint8_t)Value, ((PAddr - 0x04001000) ^ 3) + g_MMU->Imem(), stdstr_f("Imem + (%X ^ 3)", (PAddr - 0x04001000)).c_str());
|
m_Assembler.MoveConstByteToVariable(((PAddr - 0x04001000) ^ 3) + g_MMU->Imem(), stdstr_f("Imem + (%X ^ 3)", (PAddr - 0x04001000)).c_str(), (uint8_t)Value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -740,7 +740,7 @@ void CX86Ops::LeaSourceAndOffset(x86Reg x86DestReg, x86Reg x86SourceReg, int32_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CX86Ops::MoveConstByteToVariable(uint8_t Const, void * Variable, const char * VariableName)
|
void CX86Ops::MoveConstByteToVariable(void * Variable, const char * VariableName, uint8_t Const)
|
||||||
{
|
{
|
||||||
CodeLog(" mov byte ptr [%s], %Xh", VariableName, Const);
|
CodeLog(" mov byte ptr [%s], %Xh", VariableName, Const);
|
||||||
AddCode16(0x05C6);
|
AddCode16(0x05C6);
|
||||||
|
|
|
@ -127,7 +127,7 @@ public:
|
||||||
void LeaRegReg(x86Reg RegDest, x86Reg RegSrc, uint32_t Const, Multipler multiplier);
|
void LeaRegReg(x86Reg RegDest, x86Reg RegSrc, uint32_t Const, Multipler multiplier);
|
||||||
void LeaRegReg2(x86Reg RegDest, x86Reg RegSrc, x86Reg RegSrc2, Multipler multiplier);
|
void LeaRegReg2(x86Reg RegDest, x86Reg RegSrc, x86Reg RegSrc2, Multipler multiplier);
|
||||||
void LeaSourceAndOffset(x86Reg x86DestReg, x86Reg x86SourceReg, int32_t offset);
|
void LeaSourceAndOffset(x86Reg x86DestReg, x86Reg x86SourceReg, int32_t offset);
|
||||||
void MoveConstByteToVariable(uint8_t Const, void * Variable, const char * VariableName);
|
void MoveConstByteToVariable(void * Variable, const char * VariableName, uint8_t Const);
|
||||||
void MoveConstByteToX86regPointer(uint8_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
|
void MoveConstByteToX86regPointer(uint8_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
|
||||||
void MoveConstHalfToVariable(uint16_t Const, void * Variable, const char * VariableName);
|
void MoveConstHalfToVariable(uint16_t Const, void * Variable, const char * VariableName);
|
||||||
void MoveConstHalfToX86regPointer(uint16_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
|
void MoveConstHalfToX86regPointer(uint16_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
|
||||||
|
|
Loading…
Reference in New Issue