added an extra bracket to make sure RSP_SW_DMEM is correct

This commit is contained in:
zilmar 2012-09-29 18:11:30 +10:00
parent d592afc787
commit 031575fd7a
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}