From d492504ee69f77cf3111a7715ac228000b69a2de Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Sat, 4 Sep 2010 23:40:40 +0000 Subject: psxmem.c: Wipeout runs too fast - Install memory penalties which will slow it down (2 for now) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56820 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxmem.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index fc4a90e9..2c47ed06 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -142,7 +142,11 @@ static int writeok = 1; u8 psxMemRead8(u32 mem) { char *p; - u32 t; + u32 t; + + + psxRegs.cycle += 2; + t = mem >> 16; if (t == 0x1f80) { @@ -169,6 +173,10 @@ u16 psxMemRead16(u32 mem) { char *p; u32 t; + + psxRegs.cycle += 2; + + t = mem >> 16; if (t == 0x1f80) { if (mem < 0x1f801000) @@ -194,6 +202,10 @@ u32 psxMemRead32(u32 mem) { char *p; u32 t; + + psxRegs.cycle += 2; + + t = mem >> 16; if (t == 0x1f80) { if (mem < 0x1f801000) @@ -219,6 +231,10 @@ void psxMemWrite8(u32 mem, u8 value) { char *p; u32 t; + + psxRegs.cycle += 2; + + t = mem >> 16; if (t == 0x1f80) { if (mem < 0x1f801000) @@ -246,6 +262,10 @@ void psxMemWrite16(u32 mem, u16 value) { char *p; u32 t; + + psxRegs.cycle += 2; + + t = mem >> 16; if (t == 0x1f80) { if (mem < 0x1f801000) @@ -273,7 +293,11 @@ void psxMemWrite32(u32 mem, u32 value) { char *p; u32 t; -// if ((mem&0x1fffff) == 0x71E18 || value == 0x48088800) SysPrintf("t2fix!!\n"); + + psxRegs.cycle += 2; + + + // if ((mem&0x1fffff) == 0x71E18 || value == 0x48088800) SysPrintf("t2fix!!\n"); t = mem >> 16; if (t == 0x1f80) { if (mem < 0x1f801000) -- cgit v1.2.3