Core: remove MoveVariableToX86regByte, MoveVariableToX86regHalf, MoveX86regByteToN64Mem

This commit is contained in:
zilmar 2022-11-07 14:21:26 +10:30
parent 8702e6b67c
commit d19fc10f0c
2 changed files with 0 additions and 71 deletions

View File

@ -1120,74 +1120,6 @@ void CX86Ops::MoveVariableDispToX86Reg(x86Reg Reg, void * Variable, const char *
AddCode32((uint32_t)Variable);
}
void CX86Ops::MoveVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg)
{
CodeLog(" mov %s, byte ptr [%s]", x86_ByteName(Reg), VariableName);
switch (Reg)
{
case x86_EAX: AddCode16(0x058A); break;
case x86_EBX: AddCode16(0x1D8A); break;
case x86_ECX: AddCode16(0x0D8A); break;
case x86_EDX: AddCode16(0x158A); break;
default:
g_Notify->BreakPoint(__FILE__, __LINE__);
}
AddCode32((uint32_t)Variable);
}
void CX86Ops::MoveVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg)
{
CodeLog(" mov %s, word ptr [%s]", x86_HalfName(Reg), VariableName);
AddCode8(0x66);
switch (Reg)
{
case x86_EAX: AddCode16(0x058B); break;
case x86_EBX: AddCode16(0x1D8B); break;
case x86_ECX: AddCode16(0x0D8B); break;
case x86_EDX: AddCode16(0x158B); break;
case x86_ESI: AddCode16(0x358B); break;
case x86_EDI: AddCode16(0x3D8B); break;
case x86_ESP: AddCode16(0x258B); break;
case x86_EBP: AddCode16(0x2D8B); break;
default:
g_Notify->BreakPoint(__FILE__, __LINE__);
}
AddCode32((uint32_t)Variable);
}
void CX86Ops::MoveX86regByteToN64Mem(x86Reg Reg, x86Reg AddrReg)
{
uint16_t x86Command = 0;
CodeLog(" mov byte ptr [%s+N64mem], %s", x86_Name(AddrReg), x86_ByteName(Reg));
switch (AddrReg)
{
case x86_EAX: x86Command = 0x0088; break;
case x86_EBX: x86Command = 0x0388; break;
case x86_ECX: x86Command = 0x0188; break;
case x86_EDX: x86Command = 0x0288; break;
case x86_ESI: x86Command = 0x0688; break;
case x86_EDI: x86Command = 0x0788; break;
default:
g_Notify->BreakPoint(__FILE__, __LINE__);
}
switch (Reg)
{
case x86_EAX: x86Command += 0x8000; break;
case x86_EBX: x86Command += 0x9800; break;
case x86_ECX: x86Command += 0x8800; break;
case x86_EDX: x86Command += 0x9000; break;
default:
g_Notify->BreakPoint(__FILE__, __LINE__);
}
AddCode16(x86Command);
AddCode32((uint32_t)g_MMU->Rdram());
}
void CX86Ops::MoveX86regByteToVariable(x86Reg Reg, void * Variable, const char * VariableName)
{
CodeLog(" mov byte ptr [%s], %s", VariableName, x86_ByteName(Reg));

View File

@ -142,11 +142,8 @@ public:
void MoveSxVariableToX86regHalf(x86Reg Reg, void * Variable, const char * VariableName);
void MoveVariableDispToX86Reg(x86Reg Reg, void * Variable, const char * VariableName, x86Reg AddrReg, Multipler Multiplier);
void MoveVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void MoveVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
void MoveVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg);
void MoveX86PointerToX86reg(x86Reg Reg, x86Reg X86Pointer);
void MoveX86PointerToX86regDisp(x86Reg Reg, x86Reg X86Pointer, uint8_t Disp);
void MoveX86regByteToN64Mem(x86Reg Reg, x86Reg AddrReg);
void MoveX86regByteToVariable(x86Reg Reg, void * Variable, const char * VariableName);
void MoveX86regByteToX86regPointer(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveX86regHalfToN64Mem(x86Reg Reg, x86Reg AddrReg);