Minor code cleanups and spelling fixes. :) (posted as a separate rev for the purpose of uncluttering the prev revision)

git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@589 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
Jake.Stine 2009-01-14 23:50:11 +00:00 committed by Gregory Hainaut
parent 1eabf946bb
commit a251c8c67c
4 changed files with 4 additions and 19 deletions

View File

@ -164,21 +164,17 @@ static void gsOnModeChanged( u32 framerate, u32 newTickrate )
void gsSetVideoRegionType( u32 isPal )
{
u32 framerate;
if( isPal )
{
if( Config.PsxType & 1 ) return;
Console::WriteLn( "PAL Display Mode Initialized." );
Config.PsxType |= 1;
framerate = FRAMERATE_PAL;
}
else
{
if( !(Config.PsxType & 1 ) ) return;
Console::WriteLn( "NTSC Display Mode Initialized." );
Config.PsxType &= ~1;
framerate = FRAMERATE_NTSC;
}
u32 newTickrate = UpdateVSyncRate();

View File

@ -2323,9 +2323,7 @@ int __fastcall _ext_memRead128(u32 mem, u64 *out)
out[1] = gsRead64((mem+8)); return 0;
}
#ifdef MEM_LOG
MEM_LOG("Unknown Memory read128 from address %8.8x\n", mem);
#endif
cpuTlbMissR(mem, cpuRegs.branch);
return -1;
@ -2351,9 +2349,7 @@ void __fastcall _ext_memWrite8 (u32 mem, u8 value)
return;
}
#ifdef MEM_LOG
MEM_LOG("Unknown Memory write8 to address %x with data %2.2x\n", mem, value);
#endif
cpuTlbMissW(mem, cpuRegs.branch);
}
template<int p>
@ -2412,7 +2408,6 @@ void __fastcall _ext_memWrite64(u32 mem, const u64* value)
}
MEM_LOG("Unknown Memory write64 to address %x with data %8.8x_%8.8x\n", mem, (u32)(*value>>32), (u32)*value);
cpuTlbMissW(mem, cpuRegs.branch);
}
template<int p>

View File

@ -328,13 +328,11 @@ void recDI()
{
// No need to branch after disabling interrupts...
//branch = 2;
//MOV32ItoM( (uptr)&cpuRegs.code, (u32)cpuRegs.code );
MOV32MtoR( ECX, (uptr)&cpuRegs.cycle );
//MOV32ItoM( (uptr)&cpuRegs.pc, (u32)pc );
MOV32RtoM( (uptr)&g_nextBranchCycle, ECX );
iFlushCall(0);
MOV32MtoR( EAX, (uptr)&cpuRegs.cycle );
MOV32RtoM( (uptr)&g_nextBranchCycle, EAX );
CALLFunc( (uptr)Interp::DI );
}

View File

@ -62,10 +62,6 @@ extern u32 s_nBlockCycles; // cycles of current block recompiling
extern u32 s_saveConstGPRreg;
extern GPR_reg64 s_ConstGPRreg;
#ifndef REC_FUNC_NAMESPACE
#define REC_FUNC_NAMESPACE
#endif
#define REC_FUNC( f, delreg ) \
void rec##f( void ) \
{ \