• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ setchr8函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: NovelReset

static void NovelReset(void)
{
  SetWriteHandler(0x8000,0xFFFF,NovelWrite);
  SetReadHandler(0x8000,0xFFFF,CartBR);
  setprg32(0x8000,0);
  setchr8(0);
}
开发者ID:TijmenW,项目名称:tom7,代码行数:7,代码来源:novel.cpp


示例2: 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


示例3: Sync

static void Sync(void)
{
  setprg8(0x6000, reg);
  setprg32r(1, 0x8000, 0);
  setchr8(0);
  setmirror(mirr);
}
开发者ID:glennimoss,项目名称:marionet,代码行数:7,代码来源:ac-08.cpp


示例4: Power

static void Power(CartInfo *info)
{
 setprg16(0x8000, 0xF);
 setchr8(0);
 latch = 0xFF;
 Sync();
}
开发者ID:BadyRaty,项目名称:Mednafen-Core,代码行数:7,代码来源:97.cpp


示例5: Sync

static void Sync(void)
{
  setchr8(0);
  setprg8r(0x10,0x6000,(reg&0xC0)>>6);
  setprg32(0x8000,reg&0x1F);
//  setmirror(((reg&0x20)>>5));
}
开发者ID:glennimoss,项目名称:marionet,代码行数:7,代码来源:edu2000.cpp


示例6: Sync

static void Sync(void)
{
  setmirror(reg[0]);
  setprg8r(0x10,0x6000,0);
  setchr8(0);
  setprg32(0x8000,(reg[1]+reg[2])&0xf);
}
开发者ID:CatalystG,项目名称:fceu-next,代码行数:7,代码来源:178.cpp


示例7: MMC5CHRA

static void MMC5CHRA(void)
{
	int x;
	switch(mmc5vsize&3)
	{
	 case 0:setchr8(CHRBanksA[7]);
		MMC5SPRVROM_BANK8(CHRBanksA[7]);
        	break;
	 case 1:setchr4(0x0000,CHRBanksA[3]);
	        setchr4(0x1000,CHRBanksA[7]);
		MMC5SPRVROM_BANK4(0x0000,CHRBanksA[3]);
                MMC5SPRVROM_BANK4(0x1000,CHRBanksA[7]);
        	break;
 	 case 2:setchr2(0x0000,CHRBanksA[1]);
        	setchr2(0x0800,CHRBanksA[3]);
	        setchr2(0x1000,CHRBanksA[5]);
	        setchr2(0x1800,CHRBanksA[7]);
		MMC5SPRVROM_BANK2(0x0000,CHRBanksA[1]);
                MMC5SPRVROM_BANK2(0x0800,CHRBanksA[3]);
                MMC5SPRVROM_BANK2(0x1000,CHRBanksA[5]);
                MMC5SPRVROM_BANK2(0x1800,CHRBanksA[7]);
        	break;
	 case 3:
	 	for(x=0;x<8;x++)
	        {
	         setchr1(x<<10,CHRBanksA[x]);
	         MMC5SPRVROM_BANK1(x<<10,CHRBanksA[x]);
		}
	        break;
 }
}
开发者ID:IcooN,项目名称:OpenEmu,代码行数:31,代码来源:mmc5.cpp


示例8: DECLFW

static DECLFW(Write2)
{
    if(A==0x5101)
    {
        if(laststrobe&&!V)
        {
            trigger^=1;
        }
        laststrobe=V;
    } else if(A==0x5100&&V==6) //damn thoose protected games
        setprg32(0x8000,3);
    else
        switch (A&0x7300)
        {
        case 0x5200:
            DRegs[0]=V;
            Sync();
            break;
        case 0x5000:
            DRegs[1]=V;
            Sync();
            if(!(DRegs[1]&0x80)&&(scanline<128)) setchr8(0);
            break;
        case 0x5300:
            DRegs[2]=V;
            break;
        }
}
开发者ID:buliaoyin,项目名称:fce360,代码行数:28,代码来源:164.cpp


示例9: Sync

static void Sync(void) {
	setprg16(0x8000, preg);
	setprg16(0xC000, ~0);
	setchr8(0);
	if (mirr)
		setmirror(mirr);
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:7,代码来源:71.c


示例10: Sync

static void Sync(void)
{
  setchr8(0);
  setprg32(0x8000,~0);
  setprg4(0xb800,reg0);
  setprg4(0xc800,8+reg1);
}
开发者ID:ficoos,项目名称:fceu-next,代码行数:7,代码来源:KS7030.c


示例11: Sync

static void Sync(void)
{
  setchr8(0);
  setprg8r(0x10,0x6000,0);
  setprg32(0x8000,reg[1]>>1);
  setmirror((reg[0]&1)^1);
}
开发者ID:Cancerous,项目名称:fceux-xenon,代码行数:7,代码来源:179.cpp


示例12: Sync185

static void Sync185(void) {
	// little dirty eh? ;_)
	if ((datareg & 3) && (datareg != 0x13))	// 1, 2, 3, 4, 5, 6
		setchr8(0);
	else
		setchr8r(0x10, 0);
}
开发者ID:AKuHAK,项目名称:Fceumm-PS2,代码行数:7,代码来源:185.c


示例13: 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


示例14: Sync185

static void Sync185(void) {
	/* little dirty eh? ;_) */
	if ((datareg & 3) && (datareg != 0x13))	/* 1, 2, 3, 4, 5, 6 */
		setchr8(0);
	else
		setchr8r(0x10, 0);
}
开发者ID:SuperrSonic,项目名称:libretro-fceumm,代码行数:7,代码来源:185.c


示例15: DREAMPower

static void DREAMPower(void) {
    latche = 0;
    Sync();
    setchr8(0);
    SetReadHandler(0x8000, 0xFFFF, CartBR);
    SetWriteHandler(0x5020, 0x5020, DREAMWrite);
}
开发者ID:BigMacStorm,项目名称:NES_machine,代码行数:7,代码来源:dream.cpp


示例16: NROM128Reset

static void NROM128Reset(CartInfo *info)
{
  setprg16(0x8000,0);
  setprg16(0xC000,0);
  setchr8(0);
  SetReadHandler(0x8000,0xFFFF,CartBR);
}
开发者ID:ben401,项目名称:OpenEmu,代码行数:7,代码来源:simple.cpp


示例17: 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


示例18: BandaiSync

static void BandaiSync(void)
{
  if(is153)
  {
    int base=(reg[0]&1)<<4;
    if(!UNIFchrrama) //  SD Gundam Gaiden - Knight Gundam Monogatari 2 - Hikari no Kishi (J)  uses WRAM but have CHRROM too
    {
     int i;
     for(i=0; i<8; i++) setchr1(i<<10,reg[i]);
    }
    else
     setchr8(0);
    setprg16(0x8000,(reg[8]&0x0F)|base);
    setprg16(0xC000,0x0F|base);
  }
  else
  {
    int i;
    for(i=0; i<8; i++) setchr1(i<<10,reg[i]);
    setprg16(0x8000,reg[8]);
    setprg16(0xC000,~0);
  }
  switch(reg[9]&3)
  {
    case 0: setmirror(MI_V); break;
    case 1: setmirror(MI_H); break;
    case 2: setmirror(MI_0); break;
    case 3: setmirror(MI_1); break;
  }
}
开发者ID:Cancerous,项目名称:fceux-xenon,代码行数:30,代码来源:bandai.cpp


示例19: Sync

static void Sync(void)
{
  setchr8(0);
  setprg8r(0x10,0x6000,0);
  setprg32(0x8000,reg&0x1f);
  setmirror(((reg&0x20)>>5)^1);
}
开发者ID:CatalystG,项目名称:fceu-next,代码行数:7,代码来源:177.cpp


示例20: Sync181

static void Sync181(void)
{
  if(!(datareg&1))                      // 7
   setchr8(0);
  else
   setchr8r(0x10,0);
}
开发者ID:Cancerous,项目名称:fceux-xenon,代码行数:7,代码来源:185.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ setcolor函数代码示例发布时间:2022-05-30
下一篇:
C++ setbuf函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap