Only implement palette reading for the new ppu

This commit is contained in:
qeed 2009-06-20 13:04:13 +00:00
parent a3309a3982
commit 79a5d93268
1 changed files with 4 additions and 31 deletions

View File

@ -525,25 +525,6 @@ static DECLFR(A2007)
{ {
VRAMBuffer=vnapage[(tmp>>10)&0x3][tmp&0x3FF]; VRAMBuffer=vnapage[(tmp>>10)&0x3][tmp&0x3FF];
} }
else
{
if (!(tmp & 3))
{
if (!(tmp & 0xC))
ret = PALRAM[0x00];
else
ret = UPALRAM[((tmp & 0xC) >> 2) - 1];
}
else
ret = PALRAM[tmp & 0x1F];
if (GRAYSCALE)
ret &= 0x30;
VRAMBuffer = vnapage[((tmp-0x1000)>>10)&0x3][tmp&0x3FF];
}
} }
#ifdef FCEUDEF_DEBUGGER #ifdef FCEUDEF_DEBUGGER
if(!fceuindbg) if(!fceuindbg)
@ -703,17 +684,9 @@ static DECLFW(B2007)
if(tmp>=0x3F00) if(tmp>=0x3F00)
{ {
// hmmm.... // hmmm....
if (!(tmp & 3)) if(!(tmp&0xf))
{ PALRAM[0x00]=PALRAM[0x04]=PALRAM[0x08]=PALRAM[0x0C]=V&0x3F;
if (!(tmp & 0xC)) else if(tmp&3) PALRAM[(tmp&0x1f)]=V&0x3f;
PALRAM[0x00] = PALRAM[0x04] =
PALRAM[0x08] = PALRAM[0x0C] = V & 0x3F;
else
UPALRAM[((tmp & 0xC) >> 2) - 1] = V & 0x3F;
}
else
PALRAM[tmp & 0x1F] = V & 0x3F;
} }
else if(tmp<0x2000) else if(tmp<0x2000)
{ {