예제 #1
0
파일: fme7.cpp 프로젝트: Oggom/mednafen-git
int BTR_Init(CartInfo *info)
{
 SetupCartPRGMapping(0x10,WRAM,8192,1);

 SetWriteHandler(0x8000,0xbfff,Mapper69_write);
 SetWriteHandler(0xc000,0xdfff,Mapper69_SWL);
 SetWriteHandler(0xe000,0xffff,Mapper69_SWH);
 SetWriteHandler(0x6000,0x7fff,SUN5BWRAM);
 SetReadHandler(0x6000,0x7fff,SUN5AWRAM);
 SetReadHandler(0x8000, 0xFFFF, CartBR);

 info->Power = Power;
 info->Reset = Reset;
 info->StateAction = StateAction;

 if(info->battery)
 {
  info->SaveGame[0] = WRAM;
  info->SaveGameLen[0] = 8192;
 }

 Mapper69_ESI(&info->CartExpSound);

 MapIRQHook = SunIRQHook;

 return(1);
}
예제 #2
0
void NSFAY_Init(void)
{
    sunindex=0;
    SetWriteHandler(0xc000,0xdfff,Mapper69_SWL);
    SetWriteHandler(0xe000,0xffff,Mapper69_SWH);
    Mapper69_ESI();
}
예제 #3
0
void Mapper69_init(void)
{
    sunindex=0;

    SetupCartPRGMapping(0x10,WRAM,8192,1);

    SetWriteHandler(0x8000,0xbfff,Mapper69_write);
    SetWriteHandler(0xc000,0xdfff,Mapper69_SWL);
    SetWriteHandler(0xe000,0xffff,Mapper69_SWH);
    SetWriteHandler(0x6000,0x7fff,SUN5BWRAM);
    SetReadHandler(0x6000,0x7fff,SUN5AWRAM);
    Mapper69_ESI();
    MapIRQHook=SunIRQHook;
    MapStateRestore=Mapper69_StateRestore;
}
예제 #4
0
파일: fme7.cpp 프로젝트: Oggom/mednafen-git
int NSFAY_Init(EXPSOUND *ep, bool MultiChip)
{
 sr_index=0;
 if(MultiChip)
 {
  NSFECSetWriteHandler(0xc000,0xc000,Mapper69_SWL);
  NSFECSetWriteHandler(0xe000,0xe000,Mapper69_SWH);
 }
 else
 {
  NSFECSetWriteHandler(0xc000,0xdfff,Mapper69_SWL);
  NSFECSetWriteHandler(0xe000,0xffff,Mapper69_SWH);
 }
 Mapper69_ESI(ep);
 return(1);
}