From 031575fd7a7f578a71e42959f08bd4d6a2317aff Mon Sep 17 00:00:00 2001 From: zilmar Date: Sat, 29 Sep 2012 18:11:30 +1000 Subject: [PATCH] added an extra bracket to make sure RSP_SW_DMEM is correct --- Source/RSP/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/RSP/memory.c b/Source/RSP/memory.c index 9b16b848c..f279220d5 100644 --- a/Source/RSP/memory.c +++ b/Source/RSP/memory.c @@ -535,9 +535,9 @@ void RSP_SW_DMEM ( DWORD Addr, DWORD Value ) { DisplayError("hmmmm.... Problem with:\nRSP_SW_DMEM"); return; } - *(BYTE *)(RSPInfo.DMEM + (Addr ^ 3)) = (BYTE)(Value >> 0x18); - *(BYTE *)(RSPInfo.DMEM + ((Addr + 1) ^ 3)) = (BYTE)(Value >> 0x10); - *(BYTE *)(RSPInfo.DMEM + ((Addr + 2) ^ 3)) = (BYTE)(Value >> 0x8 &0xFF); + *(BYTE *)(RSPInfo.DMEM + (Addr ^ 3)) = (BYTE)((Value >> 0x18) & 0xFF); + *(BYTE *)(RSPInfo.DMEM + ((Addr + 1) ^ 3)) = (BYTE)((Value >> 0x10) & 0xFF); + *(BYTE *)(RSPInfo.DMEM + ((Addr + 2) ^ 3)) = (BYTE)((Value >> 0x8) & 0xFF); *(BYTE *)(RSPInfo.DMEM + ((Addr + 3) ^ 3)) = (BYTE)(Value &0xFF); return; }