summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpcsxcore/psxmem.c28
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)