X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=cart.c;h=6a32021f221cc9e26559ced95936ead3ee9aead8;hp=0f9e10e58e6ee0ce63060f36d3b9b85fd2b15c8e;hb=937bf65b1c80e9394547e5f105664bd26f3671de;hpb=9115e7d2b5e5b8dc00774fe92db97f1d02b2fee1 diff --git a/cart.c b/cart.c index 0f9e10e..6a32021 100644 --- a/cart.c +++ b/cart.c @@ -31,7 +31,7 @@ #include "general.h" #include "svga.h" -/* +/* This file contains all code for coordinating the mapping in of the address space external to the NES. It's also (ab)used by the NSF code. @@ -110,7 +110,7 @@ void SetupCartPRGMapping(int chip, uint8 *p, uint32 size, int ram) PRGmask4[chip]=(size>>12)-1; PRGmask8[chip]=(size>>13)-1; PRGmask16[chip]=(size>>14)-1; - PRGmask32[chip]=(size>>15)-1; + PRGmask32[chip]=(size>>15)-1; PRGram[chip]=ram?1:0; } @@ -444,7 +444,7 @@ void OpenGenie(void) goto grerr; } fclose(fp); - + /* Workaround for the FCE Ultra CHR page size only being 1KB */ for(x=0;x<4;x++) memcpy(GENIEROM+4096+(x<<8),GENIEROM+4096,256); @@ -492,7 +492,7 @@ static DECLFW(GenieWrite) else { modcon=V^0xFF; - if(V==0x71) + if(V==0x71) modcon=0; } break; @@ -549,7 +549,7 @@ void FixGenieMap(void) VPageR=VPage; FlushGenieRW(); - + for(x=0;x<3;x++) if((modcon>>(4+x))&1) {