From 9bd263e04fc222f8f231e8413a34b42bb0508626 Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Fri, 17 Oct 2008 22:17:45 +0000 Subject: [PATCH] pretty sure this is what was meant. git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@211 a6443dda-0b58-4228-96e9-037be469359c --- pcsx2/Misc.c | 2 +- pcsx2/x86/iR3000Atables.cpp | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/pcsx2/Misc.c b/pcsx2/Misc.c index fb16ddc3de..9483e63be0 100644 --- a/pcsx2/Misc.c +++ b/pcsx2/Misc.c @@ -1133,7 +1133,7 @@ long InterlockedExchangeAdd(long volatile* Addend, long Value) __asm__ __volatile__(".intel_syntax\n" "lock xadd [%0], %%eax\n" ".att_syntax\n" : : "r"(Addend), "a"(Value) : "memory" ); - // fixme - As is this + // fixme - This is supposed to return a long } u32 timeGetTime() diff --git a/pcsx2/x86/iR3000Atables.cpp b/pcsx2/x86/iR3000Atables.cpp index 074b1aceaf..572b4353fa 100644 --- a/pcsx2/x86/iR3000Atables.cpp +++ b/pcsx2/x86/iR3000Atables.cpp @@ -1443,9 +1443,7 @@ void rpsxBLTZ() _psxFlushAllUnused(); if( PSX_IS_CONST1(_Rs_) ) { - // fixme - // A variable of type u32 is always >= 0 - //if( (int)g_psxConstRegs[_Rs_] >= 0 ) + if( (int)g_psxConstRegs[_Rs_] >= 0 ) branchTo = psxpc+4; psxRecompileNextInstruction(1); @@ -1492,10 +1490,8 @@ void rpsxBGEZ() _psxFlushAllUnused(); if( PSX_IS_CONST1(_Rs_) ) { - // fixme - // A variable of type u32 is never less then 0! - /*if( g_psxConstRegs[_Rs_] < 0 ) - branchTo = psxpc+4;*/ + if ( (int)g_psxConstRegs[_Rs_] < 0 ) + branchTo = psxpc+4; psxRecompileNextInstruction(1); psxSetBranchImm( branchTo );