#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.
for(x=0;x<32;x++)
{
- Page[x]=nothing-x*2048;
+ Page[x]=(uint8 *)(nothing-x*2048);
PRGptr[x]=CHRptr[x]=0;
PRGsize[x]=CHRsize[x]=0;
}
for(x=0;x<8;x++)
{
- MMC5SPRVPage[x]=MMC5BGVPage[x]=VPageR[x]=nothing-0x400*x;
+ MMC5SPRVPage[x]=MMC5BGVPage[x]=VPageR[x]=(uint8 *)(nothing-0x400*x);
}
}
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;
}
setchr4r(0,A,V);
}
-void FASTAPASS(1) setchr8(unsigned int V)
+void FASTAPASS(2) setchr8(unsigned int V)
{
setchr8r(0,V);
}
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);
else
{
modcon=V^0xFF;
- if(V==0x71)
+ if(V==0x71)
modcon=0;
}
break;
VPageR=VPage;
FlushGenieRW();
-
+
for(x=0;x<3;x++)
if((modcon>>(4+x))&1)
{