From 320769d9919039a0c2bde89d254dd5a6d5987cc0 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 4 Jan 2024 10:33:07 +1030 Subject: [PATCH] Core: CX86Ops::OrConstToVariable should be a dword_ptr not a word_ptr --- Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp index 3172a6a40..7fbff72ab 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp @@ -529,12 +529,12 @@ void CX86Ops::OrConstToVariable(void * Variable, const char * VariableName, uint { stdstr_f SymbolKey("0x%X", Variable); AddSymbol(SymbolKey.c_str(), VariableName); - or_(asmjit::x86::word_ptr((uint64_t)Variable), Const); + or_(asmjit::x86::dword_ptr((uint64_t)Variable), Const); RemoveSymbol(SymbolKey.c_str()); } else { - or_(asmjit::x86::word_ptr((uint64_t)Variable), Const); + or_(asmjit::x86::dword_ptr((uint64_t)Variable), Const); } }