Core: Capitalize Reg in x86ops

This commit is contained in:
zilmar 2022-11-07 09:31:37 +10:30
parent dbd20dd993
commit c7ac150b91
2 changed files with 331 additions and 331 deletions

File diff suppressed because it is too large Load Diff

View File

@ -66,12 +66,12 @@ public:
void AdcConstToVariable(void * Variable, const char * VariableName, uint8_t Constant);
void AdcConstToX86Reg(x86Reg Reg, uint32_t Const);
void AdcVariableToX86reg(x86Reg reg, void * Variable, const char * VariableName);
void AdcVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void AdcX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void AddConstToVariable(void * Variable, const char * VariableName, uint32_t Const);
void AddConstToX86Reg(x86Reg Reg, uint32_t Const, bool NeedCarry = false);
void AddVariableToX86reg(x86Reg reg, void * Variable, const char * VariableName);
void AddX86regToVariable(x86Reg reg, void * Variable, const char * VariableName);
void AddVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void AddX86regToVariable(x86Reg Reg, void * Variable, const char * VariableName);
void AddX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void AndConstToVariable(uint32_t Const, void * Variable, const char * VariableName);
void AndConstToX86Reg(x86Reg Reg, uint32_t Const);
@ -89,9 +89,9 @@ public:
void CompVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void CompX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void DecX86reg(x86Reg Reg);
void DivX86reg(x86Reg reg);
void idivX86reg(x86Reg reg);
void imulX86reg(x86Reg reg);
void DivX86reg(x86Reg Reg);
void idivX86reg(x86Reg Reg);
void imulX86reg(x86Reg Reg);
void IncX86reg(x86Reg Reg);
void JaeLabel8(const char * Label, uint8_t Value);
void JaeLabel32(const char * Label, uint32_t Value);
@ -110,9 +110,9 @@ public:
void JleLabel32(const char * Label, uint32_t Value);
void JlLabel8(const char * Label, uint8_t Value);
void JlLabel32(const char * Label, uint32_t Value);
void JmpDirectReg(x86Reg reg);
void JmpDirectReg(x86Reg Reg);
void JmpIndirectLabel32(const char * Label, uint32_t location);
void JmpIndirectReg(x86Reg reg);
void JmpIndirectReg(x86Reg Reg);
void JmpLabel8(const char * Label, uint8_t Value);
void JmpLabel32(const char * Label, uint32_t Value);
void JneLabel8(const char * Label, uint8_t Value);
@ -141,141 +141,141 @@ public:
void MoveConstToX86Pointer(x86Reg X86Pointer, uint32_t Const);
void MoveConstToX86reg(x86Reg Reg, uint32_t Const);
void MoveConstToX86regPointer(uint32_t Const, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveN64MemDispToX86reg(x86Reg reg, x86Reg AddrReg, uint8_t Disp);
void MoveN64MemToX86reg(x86Reg reg, x86Reg AddrReg);
void MoveN64MemToX86regByte(x86Reg reg, x86Reg AddrReg);
void MoveN64MemToX86regHalf(x86Reg reg, x86Reg AddrReg);
void MoveSxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg);
void MoveSxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg);
void MoveSxN64MemToX86regByte(x86Reg reg, x86Reg AddrReg);
void MoveSxN64MemToX86regHalf(x86Reg reg, x86Reg AddrReg);
void MoveSxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg reg);
void MoveSxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg reg);
void MoveN64MemDispToX86reg(x86Reg Reg, x86Reg AddrReg, uint8_t Disp);
void MoveN64MemToX86reg(x86Reg Reg, x86Reg AddrReg);
void MoveN64MemToX86regByte(x86Reg Reg, x86Reg AddrReg);
void MoveN64MemToX86regHalf(x86Reg Reg, x86Reg AddrReg);
void MoveSxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveSxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveSxN64MemToX86regByte(x86Reg Reg, x86Reg AddrReg);
void MoveSxN64MemToX86regHalf(x86Reg Reg, x86Reg AddrReg);
void MoveSxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
void MoveSxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg);
void MoveVariableDispToX86Reg(void * Variable, const char * VariableName, x86Reg Reg, x86Reg AddrReg, int32_t 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);
void MoveX86regHalfToVariable(x86Reg reg, void * Variable, const char * VariableName);
void MoveX86regHalfToX86regPointer(x86Reg reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg);
void MoveX86regPointerToX86regDisp8(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg, uint8_t offset);
void MoveX86regToMemory(x86Reg reg, x86Reg AddrReg, uint32_t Disp);
void MoveX86regToN64Mem(x86Reg reg, x86Reg AddrReg);
void MoveX86regToN64MemDisp(x86Reg reg, x86Reg AddrReg, uint8_t Disp);
void MoveX86regToVariable(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);
void MoveX86regHalfToVariable(x86Reg Reg, void * Variable, const char * VariableName);
void MoveX86regHalfToX86regPointer(x86Reg Reg, x86Reg AddrReg1, x86Reg AddrReg2);
void MoveX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveX86regPointerToX86regDisp8(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg, uint8_t offset);
void MoveX86regToMemory(x86Reg Reg, x86Reg AddrReg, uint32_t Disp);
void MoveX86regToN64Mem(x86Reg Reg, x86Reg AddrReg);
void MoveX86regToN64MemDisp(x86Reg Reg, x86Reg AddrReg, uint8_t Disp);
void MoveX86regToVariable(x86Reg Reg, void * Variable, const char * VariableName);
void MoveX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void MoveX86regToX86Pointer(x86Reg X86Pointer, x86Reg Reg);
void MoveX86regToX86regPointer(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveZxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg);
void MoveZxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg reg);
void MoveZxN64MemToX86regByte(x86Reg reg, x86Reg AddrReg);
void MoveZxN64MemToX86regHalf(x86Reg reg, x86Reg AddrReg);
void MoveZxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg reg);
void MoveZxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg reg);
void MulX86reg(x86Reg reg);
void MoveZxByteX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveZxHalfX86regPointerToX86reg(x86Reg AddrReg1, x86Reg AddrReg2, x86Reg Reg);
void MoveZxN64MemToX86regByte(x86Reg Reg, x86Reg AddrReg);
void MoveZxN64MemToX86regHalf(x86Reg Reg, x86Reg AddrReg);
void MoveZxVariableToX86regByte(void * Variable, const char * VariableName, x86Reg Reg);
void MoveZxVariableToX86regHalf(void * Variable, const char * VariableName, x86Reg Reg);
void MulX86reg(x86Reg Reg);
void NotX86Reg(x86Reg Reg);
void OrConstToVariable(uint32_t Const, void * Variable, const char * VariableName);
void OrConstToX86Reg(uint32_t Const, x86Reg reg);
void OrConstToX86Reg(uint32_t Const, x86Reg Reg);
void OrVariableToX86Reg(void * Variable, const char * VariableName, x86Reg Reg);
void OrX86RegToVariable(void * Variable, const char * VariableName, x86Reg Reg);
void OrX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void Push(x86Reg reg);
void Push(x86Reg Reg);
void Pushad();
void PushImm32(uint32_t Value);
void PushImm32(const char * String, uint32_t Value);
void Pop(x86Reg reg);
void Pop(x86Reg Reg);
void Popad();
void Ret();
void Seta(x86Reg reg);
void Setae(x86Reg reg);
void Seta(x86Reg Reg);
void Setae(x86Reg Reg);
void SetaVariable(void * Variable, const char * VariableName);
void Setb(x86Reg reg);
void Setb(x86Reg Reg);
void SetbVariable(void * Variable, const char * VariableName);
void Setg(x86Reg reg);
void Setg(x86Reg Reg);
void SetgVariable(void * Variable, const char * VariableName);
void Setl(x86Reg reg);
void Setl(x86Reg Reg);
void SetlVariable(void * Variable, const char * VariableName);
void Setz(x86Reg reg);
void Setnz(x86Reg reg);
void Setz(x86Reg Reg);
void Setnz(x86Reg Reg);
void ShiftLeftDouble(x86Reg Destination, x86Reg Source);
void ShiftLeftDoubleImmed(x86Reg Destination, x86Reg Source, uint8_t Immediate);
void ShiftLeftSign(x86Reg reg);
void ShiftLeftSignImmed(x86Reg reg, uint8_t Immediate);
void ShiftLeftSign(x86Reg Reg);
void ShiftLeftSignImmed(x86Reg Reg, uint8_t Immediate);
void ShiftRightDouble(x86Reg Destination, x86Reg Source);
void ShiftRightDoubleImmed(x86Reg Destination, x86Reg Source, uint8_t Immediate);
void ShiftRightSign(x86Reg reg);
void ShiftRightSignImmed(x86Reg reg, uint8_t Immediate);
void ShiftRightUnsign(x86Reg reg);
void ShiftRightUnsignImmed(x86Reg reg, uint8_t Immediate);
void ShiftRightSign(x86Reg Reg);
void ShiftRightSignImmed(x86Reg Reg, uint8_t Immediate);
void ShiftRightUnsign(x86Reg Reg);
void ShiftRightUnsignImmed(x86Reg Reg, uint8_t Immediate);
void SbbConstFromX86Reg(x86Reg Reg, uint32_t Const);
void SbbVariableFromX86reg(x86Reg reg, void * Variable, const char * VariableName);
void SbbVariableFromX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void SbbX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void SubConstFromVariable(uint32_t Const, void * Variable, const char * VariableName);
void SubConstFromX86Reg(x86Reg Reg, uint32_t Const);
void SubVariableFromX86reg(x86Reg reg, void * Variable, const char * VariableName);
void SubVariableFromX86reg(x86Reg Reg, void * Variable, const char * VariableName);
void SubX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void TestConstToX86Reg(uint32_t Const, x86Reg reg);
void TestConstToX86Reg(uint32_t Const, x86Reg Reg);
void TestVariable(uint32_t Const, void * Variable, const char * VariableName);
void TestX86RegToX86Reg(x86Reg Destination, x86Reg Source);
void TestX86ByteRegToX86Reg(x86Reg Destination, x86Reg Source);
void XorConstToX86Reg(x86Reg Reg, uint32_t Const);
void XorX86RegToX86Reg(x86Reg Source, x86Reg Destination);
void XorVariableToX86reg(void * Variable, const char * VariableName, x86Reg reg);
void XorVariableToX86reg(void * Variable, const char * VariableName, x86Reg Reg);
void fpuAbs();
void fpuAddDword(void * Variable, const char * VariableName);
void fpuAddDwordRegPointer(x86Reg x86Pointer);
void fpuAddQword(void * Variable, const char * VariableName);
void fpuAddQwordRegPointer(x86Reg X86Pointer);
void fpuAddReg(x86FpuValues reg);
void fpuAddRegPop(int32_t & StackPos, x86FpuValues reg);
void fpuAddReg(x86FpuValues Reg);
void fpuAddRegPop(int32_t & StackPos, x86FpuValues Reg);
void fpuComDword(void * Variable, const char * VariableName, bool Pop);
void fpuComDwordRegPointer(x86Reg X86Pointer, bool Pop);
void fpuComQword(void * Variable, const char * VariableName, bool Pop);
void fpuComQwordRegPointer(x86Reg X86Pointer, bool Pop);
void fpuComReg(x86FpuValues reg, bool Pop);
void fpuComReg(x86FpuValues Reg, bool Pop);
void fpuDivDword(void * Variable, const char * VariableName);
void fpuDivDwordRegPointer(x86Reg X86Pointer);
void fpuDivQword(void * Variable, const char * VariableName);
void fpuDivQwordRegPointer(x86Reg X86Pointer);
void fpuDivReg(x86FpuValues Reg);
void fpuDivRegPop(x86FpuValues reg);
void fpuDivRegPop(x86FpuValues Reg);
void fpuExchange(x86FpuValues Reg);
void fpuFree(x86FpuValues Reg);
void fpuDecStack(int32_t & StackPos);
void fpuIncStack(int32_t & StackPos);
void fpuLoadControl(void * Variable, const char * VariableName);
void fpuLoadDword(int32_t & StackPos, void * Variable, const char * VariableName);
void fpuLoadDwordFromX86Reg(int32_t & StackPos, x86Reg reg);
void fpuLoadDwordFromN64Mem(int32_t & StackPos, x86Reg reg);
void fpuLoadInt32bFromN64Mem(int32_t & StackPos, x86Reg reg);
void fpuLoadDwordFromX86Reg(int32_t & StackPos, x86Reg Reg);
void fpuLoadDwordFromN64Mem(int32_t & StackPos, x86Reg Reg);
void fpuLoadInt32bFromN64Mem(int32_t & StackPos, x86Reg Reg);
void fpuLoadIntegerDword(int32_t & StackPos, void * Variable, const char * VariableName);
void fpuLoadIntegerDwordFromX86Reg(int32_t & StackPos, x86Reg Reg);
void fpuLoadIntegerQword(int32_t & StackPos, void * Variable, const char * VariableName);
void fpuLoadIntegerQwordFromX86Reg(int32_t & StackPos, x86Reg Reg);
void fpuLoadQword(int32_t & StackPos, void * Variable, const char * VariableName);
void fpuLoadQwordFromX86Reg(int32_t & StackPos, x86Reg Reg);
void fpuLoadQwordFromN64Mem(int32_t & StackPos, x86Reg reg);
void fpuLoadQwordFromN64Mem(int32_t & StackPos, x86Reg Reg);
void fpuLoadReg(int32_t & StackPos, x86FpuValues Reg);
void fpuMulDword(void * Variable, const char * VariableName);
void fpuMulDwordRegPointer(x86Reg X86Pointer);
void fpuMulQword(void * Variable, const char * VariableName);
void fpuMulQwordRegPointer(x86Reg X86Pointer);
void fpuMulReg(x86FpuValues reg);
void fpuMulRegPop(x86FpuValues reg);
void fpuMulReg(x86FpuValues Reg);
void fpuMulRegPop(x86FpuValues Reg);
void fpuNeg();
void fpuRound();
void fpuSqrt();
void fpuStoreControl(void * Variable, const char * VariableName);
void fpuStoreDword(int32_t & StackPos, void * Variable, const char * VariableName, bool pop);
void fpuStoreDwordFromX86Reg(int32_t & StackPos, x86Reg Reg, bool pop);
void fpuStoreDwordToN64Mem(int32_t & StackPos, x86Reg reg, bool Pop);
void fpuStoreDwordToN64Mem(int32_t & StackPos, x86Reg Reg, bool Pop);
void fpuStoreIntegerDword(int32_t & StackPos, void * Variable, const char * VariableName, bool pop);
void fpuStoreIntegerDwordFromX86Reg(int32_t & StackPos, x86Reg Reg, bool pop);
void fpuStoreIntegerQword(int32_t & StackPos, void * Variable, const char * VariableName, bool pop);
@ -288,8 +288,8 @@ public:
void fpuSubQword(void * Variable, const char * VariableName);
void fpuSubQwordRegPointer(x86Reg X86Pointer);
void fpuSubQwordReverse(void * Variable, const char * VariableName);
void fpuSubReg(x86FpuValues reg);
void fpuSubRegPop(x86FpuValues reg);
void fpuSubReg(x86FpuValues Reg);
void fpuSubRegPop(x86FpuValues Reg);
static bool Is8BitReg(x86Reg Reg);
static uint8_t CalcMultiplyCode(Multipler Multiply);