示例#1
0
文件: simple.c 项目: IcooN/OpenEmu
static DECLFW(Mapper34_write)
{
 switch(A)
 {
  case 0x7FFD:ROM_BANK32(V);break;
  case 0x7FFE:VROM_BANK4(0x0000,V);break;
  case 0x7fff:VROM_BANK4(0x1000,V);break;
 }
 if(A>=0x8000)
  ROM_BANK32(V);
}
示例#2
0
static DECLFW(Mapper201_write)
{
//  FCEU_printf("%04x, %02x\n",A,V);
  if(A&0x08)
  {
     ROM_BANK32(A&0x03);
     VROM_BANK8(A&0x03);
  }
  else
  {
     ROM_BANK32(0);
     VROM_BANK8(0);
  }
}
示例#3
0
文件: 46.cpp 项目: TijmenW/tom7
void Mapper46_init(void)
{
 MIRROR_SET(0);
 ROM_BANK32(0);
 SetWriteHandler(0x8000,0xffff,Mapper46_write);
 SetWriteHandler(0x6000,0x7fff,Mapper46_writel);
}
示例#4
0
文件: 241.c 项目: BruceJawn/FlashNES
void Mapper241_init(void)
{
 ROM_BANK32(0);
 SetWriteHandler(0x5000,0x5fff,M241wr);
 SetWriteHandler(0x8000,0xFFFF,M241wr);
 SetReadHandler(0x4020,0x5fff,M241rd);
}
示例#5
0
文件: 241.c 项目: BruceJawn/FlashNES
static DECLFW(M241wr)
{
 if(A<0x8000)
 {
 // printf("$%04x:$%02x, $%04x\n",A,V,X.PC);
 }
 else
  ROM_BANK32(V);
}
示例#6
0
文件: simple.c 项目: IcooN/OpenEmu
void Mapper34_init(void)
{
 ROM_BANK32(0);
  SetWriteHandler(0x7ffd,0xffff,Mapper34_write);
}
示例#7
0
void Mapper201_init(void)
{
  ROM_BANK32(~0);
  VROM_BANK8(~0);
  SetWriteHandler(0x8000,0xffff,Mapper201_write);
}