diff options
| author | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-09-04 23:40:40 +0000 |
|---|---|---|
| committer | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-09-04 23:40:40 +0000 |
| commit | d492504ee69f77cf3111a7715ac228000b69a2de (patch) | |
| tree | 4dec692f299907d4939869b81241fdb5199c3750 /libpcsxcore | |
| parent | 3b5dcd31e974035a28c817fbca39cb7589d01702 (diff) | |
| download | pcsxr-d492504ee69f77cf3111a7715ac228000b69a2de.tar.gz | |
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
Diffstat (limited to 'libpcsxcore')
| -rw-r--r-- | libpcsxcore/psxmem.c | 28 |
1 files changed, 26 insertions, 2 deletions
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) |
