mapper 253 fixed typo

This commit is contained in:
CaH4e3 2009-11-08 15:32:49 +00:00
parent 37a7bf8458
commit f0e8f17cc5
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ static void Sync(void)
for(i=0; i<8; i++) for(i=0; i<8; i++)
{ {
uint32 chr = chrlo[i]|(chrhi[i]<<8); uint32 chr = chrlo[i]|(chrhi[i]<<8);
if ((chr==4)||(chr==5)) // [ES-1064] Qi Long Zhu (C) if ((chrlo[i]==4)||(chrlo[i]==5)) // [ES-1064] Qi Long Zhu (C)
setchr1r(0x10,i<<10,chr&1); setchr1r(0x10,i<<10,chr&1);
else else
setchr1(i<<10,chr); setchr1(i<<10,chr);
@ -72,7 +72,7 @@ static DECLFW(M253Write)
uint8 ind=((((A&8)|(A>>8))>>3)+2)&7; uint8 ind=((((A&8)|(A>>8))>>3)+2)&7;
uint8 sar=A&4; uint8 sar=A&4;
chrlo[ind]=(chrlo[ind]&(0xF0>>sar))|((V&0x0F)<<sar); chrlo[ind]=(chrlo[ind]&(0xF0>>sar))|((V&0x0F)<<sar);
if(A&4) if(sar)
chrhi[ind]=V>>4; chrhi[ind]=V>>4;
Sync(); Sync();
} }
@ -147,7 +147,7 @@ void Mapper253_Init(CartInfo *info)
CHRRAMSIZE=4096; CHRRAMSIZE=4096;
CHRRAM=(uint8*)FCEU_gmalloc(CHRRAMSIZE); CHRRAM=(uint8*)FCEU_gmalloc(CHRRAMSIZE);
SetupCartPRGMapping(0x10,CHRRAM,CHRRAMSIZE,1); SetupCartCHRMapping(0x10,CHRRAM,CHRRAMSIZE,1);
AddExState(CHRRAM, CHRRAMSIZE, 0, "CRAM"); AddExState(CHRRAM, CHRRAMSIZE, 0, "CRAM");
WRAMSIZE=8192; WRAMSIZE=8192;

View File

@ -85,8 +85,8 @@ void MapperNNN_Init(CartInfo *info)
/* /*
CHRRAMSIZE=8192; CHRRAMSIZE=8192;
CHRRAM=(uint8*)FCEU_gmalloc(CHRRAMSIZE); CHRRAM=(uint8*)FCEU_gmalloc(CHRRAMSIZE);
SetupCartPRGMapping(0x10,CHRRAM,CHRRAMSIZE,1); SetupCartCHRMapping(0x10,CHRRAM,CHRRAMSIZE,1);
AddExState(CHRRAM, CHRRAMSIZE, 0, "WRAM"); AddExState(CHRRAM, CHRRAMSIZE, 0, "CRAM");
*/ */
/* /*
WRAMSIZE=8192; WRAMSIZE=8192;