summaryrefslogtreecommitdiff
path: root/libpcsxcore/psxmem.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-04-15 12:10:49 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-04-15 12:10:49 +0000
commit8c939ea635450f85b3153cd463a9d6825c2a20aa (patch)
tree80cdf09386630296915f03dc27d992d0eba31ad2 /libpcsxcore/psxmem.c
parentad59e35254c0a563a7e9c387916c5a1547097c70 (diff)
downloadpcsxr-8c939ea635450f85b3153cd463a9d6825c2a20aa.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@45449 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/psxmem.c')
-rw-r--r--libpcsxcore/psxmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index 2ab5615d..0b276bfc 100644
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -62,7 +62,7 @@ int psxMemInit() {
psxP = &psxM[0x200000];
psxH = &psxM[0x210000];
- psxR = (char *)malloc(0x00080000);
+ psxR = (s8 *)malloc(0x00080000);
if (psxMemRLUT == NULL || psxMemWLUT == NULL ||
psxM == NULL || psxP == NULL || psxH == NULL) {
@@ -295,7 +295,7 @@ void psxMemWrite32(u32 mem, u32 value) {
memset(psxMemWLUT + 0x8000, 0, 0x80 * sizeof(void *));
memset(psxMemWLUT + 0xa000, 0, 0x80 * sizeof(void *));
break;
- case 0x1e988:
+ case 0x00: case 0x1e988:
if (writeok == 1) break;
writeok = 1;
for (i = 0; i < 0x80; i++) psxMemWLUT[i + 0x0000] = (void *)&psxM[(i & 0x1f) << 16];