当前位置: 首页>>代码示例>>C++>>正文


C++ SetWriteHandler函数代码示例

本文整理汇总了C++中SetWriteHandler函数的典型用法代码示例。如果您正苦于以下问题:C++ SetWriteHandler函数的具体用法?C++ SetWriteHandler怎么用?C++ SetWriteHandler使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetWriteHandler函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Mapper46_init

void Mapper46_init(void)
{
 MIRROR_SET(0);
 ROM_BANK32(0);
 SetWriteHandler(0x8000,0xffff,Mapper46_write);
 SetWriteHandler(0x6000,0x7fff,Mapper46_writel);
}
开发者ID:TijmenW,项目名称:tom7,代码行数:7,代码来源:46.cpp

示例2: M108Power

static void M108Power(void) {
	Sync();
	SetReadHandler(0x6000, 0x7FFF, CartBR);
	SetReadHandler(0x8000, 0xFFFF, CartBR);
	SetWriteHandler(0x8000, 0x8FFF, M108Write); // regular 108
	SetWriteHandler(0xF000, 0xFFFF, M108Write); // simplified Kaiser BB Hack
}
开发者ID:HerbFargus,项目名称:FCE3D,代码行数:7,代码来源:108.cpp

示例3: M156Power

static void M156Power(void) {
	M156Reset();
	Sync();
	SetReadHandler(0x6000, 0xFFFF, CartBR);
	SetWriteHandler(0x6000, 0x7FFF, CartBW);
	SetWriteHandler(0xC000, 0xCFFF, M156Write);
}
开发者ID:CatalystG,项目名称:fceu-next,代码行数:7,代码来源:156.c

示例4: GenMMC3Power

void GenMMC3Power(void) {
	if (UNIFchrrama) setchr8(0);

	SetWriteHandler(0x8000, 0xBFFF, MMC3_CMDWrite);
	SetWriteHandler(0xC000, 0xFFFF, MMC3_IRQWrite);
	SetReadHandler(0x8000, 0xFFFF, CartBR);
	A001B = A000B = 0;
	setmirror(1);
	if (mmc3opts & 1) {
		if (WRAMSIZE == 1024) {
			FCEU_CheatAddRAM(1, 0x7000, WRAM);
			SetReadHandler(0x7000, 0x7FFF, MAWRAMMMC6);
			SetWriteHandler(0x7000, 0x7FFF, MBWRAMMMC6);
		} else {
			FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
			SetWriteHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBW);
			SetReadHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBR);
			setprg8r(0x10, 0x6000, 0);
		}
		if (!(mmc3opts & 2))
			FCEU_dwmemset(WRAM, 0, WRAMSIZE);
	}
	MMC3RegReset();
	if (CHRRAM)
		FCEU_dwmemset(CHRRAM, 0, CHRRAMSIZE);
}
开发者ID:Plombo,项目名称:fceux,代码行数:26,代码来源:mmc3.cpp

示例5: M82Power

static void M82Power(void) {
	Sync();
	SetReadHandler(0x6000, 0xffff, CartBR);
	SetWriteHandler(0x6000, 0x7fff, CartBW);
	SetWriteHandler(0x7ef0, 0x7efc, M82Write);	// external WRAM might end at $73FF
	FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:7,代码来源:82.c

示例6: LH53Power

static void LH53Power(void) {
	Sync();
	SetReadHandler(0x6000, 0xFFFF, CartBR);
	SetWriteHandler(0xB800, 0xD7FF, LH53RamWrite);
	SetWriteHandler(0xE000, 0xEFFF, LH53IRQaWrite);
	SetWriteHandler(0xF000, 0xFFFF, LH53Write);
}
开发者ID:CatalystG,项目名称:fceu-next,代码行数:7,代码来源:lh53.c

示例7: Mapper241_init

void Mapper241_init(void)
{
 ROM_BANK32(0);
 SetWriteHandler(0x5000,0x5fff,M241wr);
 SetWriteHandler(0x8000,0xFFFF,M241wr);
 SetReadHandler(0x4020,0x5fff,M241rd);
}
开发者ID:BruceJawn,项目名称:FlashNES,代码行数:7,代码来源:241.c

示例8: UNLCC21Power

static void UNLCC21Power(void) {
	latche = 0;
	Sync();
	SetReadHandler(0x8000, 0xFFFF, CartBR);
	SetWriteHandler(0x8001, 0xFFFF, UNLCC21Write1);
	SetWriteHandler(0x8000, 0x8000, UNLCC21Write2); // another one many-in-1 mapper, there is a lot of similar carts with little different wirings
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:7,代码来源:mihunche.cpp

示例9: FDSInit

static void FDSInit(void)
{
	memset(FDSRegs,0,sizeof(FDSRegs));
	writeskip=DiskPtr=DiskSeekIRQ=0;
	setmirror(1);

	setprg8r(0,0xe000,0);    // BIOS
	setprg32r(1,0x6000,0);   // 32KB RAM
	setchr8(0);     // 8KB CHR RAM

	MapIRQHook=FDSFix;
	GameStateRestore=FDSStateRestore;

	SetReadHandler(0x4030,0x4030,FDSRead4030);
	SetReadHandler(0x4031,0x4031,FDSRead4031);
	SetReadHandler(0x4032,0x4032,FDSRead4032);
	SetReadHandler(0x4033,0x4033,FDSRead4033);

	SetWriteHandler(0x4020,0x4025,FDSWrite); 

	SetWriteHandler(0x6000,0xdfff,FDSRAMWrite);
	SetReadHandler(0x6000,0xdfff,FDSRAMRead);
	SetReadHandler(0xE000,0xFFFF,FDSBIOSRead);
	IRQCount=IRQLatch=IRQa=0;

	FDSSoundReset();
	InDisk=0;
	SelectDisk=0;
}
开发者ID:Cancerous,项目名称:fceux-xenon,代码行数:29,代码来源:fds.cpp

示例10: GenMMC3Power

void GenMMC3Power(void) {
	if (UNIFchrrama) setchr8(0);

	SetWriteHandler(0x8000, 0xBFFF, MMC3_CMDWrite);
	SetWriteHandler(0xC000, 0xFFFF, MMC3_IRQWrite);
	SetReadHandler(0x8000, 0xFFFF, CartBR);

// KT-008 boards hack 2-in-1, TODO assign to new ines mapper, most dump of KT-boards on the net are mapper 4, so need database or goodnes fix support
	SetWriteHandler(0x5000,0x5FFF, KT008HackWrite);

	A001B = A000B = 0;
	setmirror(1);
	if (mmc3opts & 1) {
		if (WRAMSIZE == 1024) {
			FCEU_CheatAddRAM(1, 0x7000, WRAM);
			SetReadHandler(0x7000, 0x7FFF, MAWRAMMMC6);
			SetWriteHandler(0x7000, 0x7FFF, MBWRAMMMC6);
		} else {
			FCEU_CheatAddRAM(WRAMSIZE >> 10, 0x6000, WRAM);
			SetWriteHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBW);
			SetReadHandler(0x6000, 0x6000 + ((WRAMSIZE - 1) & 0x1fff), CartBR);
			setprg8r(0x10, 0x6000, 0);
		}
		if (!(mmc3opts & 2))
			FCEU_dwmemset(WRAM, 0, WRAMSIZE);
	}
	MMC3RegReset();
	if (CHRRAM)
		FCEU_dwmemset(CHRRAM, 0, CHRRAMSIZE);
}
开发者ID:Nolaan,项目名称:fceux,代码行数:30,代码来源:mmc3.cpp

示例11: BTR_Init

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);
}
开发者ID:Oggom,项目名称:mednafen-git,代码行数:27,代码来源:fme7.cpp

示例12: NSFAY_Init

void NSFAY_Init(void)
{
    sunindex=0;
    SetWriteHandler(0xc000,0xdfff,Mapper69_SWL);
    SetWriteHandler(0xe000,0xffff,Mapper69_SWH);
    Mapper69_ESI();
}
开发者ID:tacchinotacchi,项目名称:tom7misc-linux,代码行数:7,代码来源:69.cpp

示例13: M193Power

static void M193Power(void) {
	bank = 0;
	Sync();
	SetWriteHandler(0x6000, 0x6003, M193Write);
	SetReadHandler(0x8000, 0xFFFF, CartBR);
	SetWriteHandler(0x8000, 0xFFFF, CartBW);
}
开发者ID:HerbFargus,项目名称:FCE3D,代码行数:7,代码来源:193.cpp

示例14: M73Power

static void M73Power(void) {
	IRQReload = IRQm = IRQx = 0;
	Sync();
	SetReadHandler(0x6000, 0xFFFF, CartBR);
	SetWriteHandler(0x6000, 0x7FFF, CartBW);
	SetWriteHandler(0x8000, 0xFFFF, M73Write);
}
开发者ID:GinBunBun,项目名称:Fceumm-PS2,代码行数:7,代码来源:vrc3.c

示例15: Mapper48_init

void Mapper48_init(void)
{
        SetWriteHandler(0x8000,0xbfff,Mapper33_write);
        SetWriteHandler(0xc000,0xffff,Mapper48_HiWrite);
        GameHBIRQHook=heho;
        is48=1;
}
开发者ID:ficoos,项目名称:fceu-next,代码行数:7,代码来源:33.c


注:本文中的SetWriteHandler函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。