From 9dd2df36d41ed677e2996b3cec7999e9e584a9ba Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 7 Nov 2022 10:18:55 +1030 Subject: [PATCH] Core: remove CX86Ops::CompVariableToX86reg --- Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp | 7 ------- Source/Project64-core/N64System/Recompiler/x86/x86ops.h | 1 - 2 files changed, 8 deletions(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp index 209cd32f5..012242e3b 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp @@ -261,13 +261,6 @@ void CX86Ops::CompX86regToVariable(x86Reg Reg, void * Variable, const char * Var AddCode32((uint32_t)Variable); } -void CX86Ops::CompVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName) -{ - CodeLog(" cmp dword ptr [%s], %s", VariableName, x86_Name(Reg)); - AddCode16((uint16_t)(0x0539 + (Reg * 0x800))); - AddCode32((uint32_t)Variable); -} - void CX86Ops::CompX86RegToX86Reg(x86Reg Destination, x86Reg Source) { uint16_t x86Command = 0; diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.h b/Source/Project64-core/N64System/Recompiler/x86/x86ops.h index 3cd8e6fbe..a2d88e46a 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.h +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.h @@ -86,7 +86,6 @@ public: void CompConstToX86reg(x86Reg Reg, uint32_t Const); void CompConstToX86regPointer(x86Reg Reg, uint32_t Const); void CompX86regToVariable(x86Reg Reg, void * Variable, const char * VariableName); - void CompVariableToX86reg(x86Reg Reg, void * Variable, const char * VariableName); void CompX86RegToX86Reg(x86Reg Destination, x86Reg Source); void DecX86reg(x86Reg Reg); void DivX86reg(x86Reg Reg);