本文整理汇总了C++中setprg8r函数的典型用法代码示例。如果您正苦于以下问题:C++ setprg8r函数的具体用法?C++ setprg8r怎么用?C++ setprg8r使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setprg8r函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: SA9602BPW
static void SA9602BPW(uint32 A, uint8 V)
{
setprg8r(EXPREGS[1],A,V&0x3F);
if(MMC3_cmd&0x40)
setprg8r(0,0x8000,~(1));
else
setprg8r(0,0xc000,~(1));
setprg8r(0,0xe000,~(0));
}
开发者ID:glennimoss,项目名称:marionet,代码行数:9,代码来源:sa-9602b.cpp
示例2: Sync
static void Sync(void)
{
setprg2r(0,0xE000,0);
setprg2r(0,0xE800,0);
setprg2r(0,0xF000,0);
setprg2r(0,0xF800,0);
setprg8r(1,0x6000,3);
setprg8r(1,0x8000,0);
setprg8r(1,0xA000,1);
setprg8r(1,0xC000,2);
setchr8(chr & 1);
setmirror(MI_V);
}
开发者ID:glennimoss,项目名称:marionet,代码行数:15,代码来源:le05.cpp
示例3: 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
示例4: 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
示例5: 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
示例6: 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
示例7: Sync
static void Sync(void)
{
uint8 i;
setprg8r(0x10,0x6000,0);
setprg8(0x8000,prg[0]);
setprg8(0xa000,prg[1]);
setprg8(0xc000,~1);
setprg8(0xe000,~0);
for(i=0; i<8; i++)
{
uint32 chr = chrlo[i]|(chrhi[i]<<8);
if(chrlo[i]==0xc8)
{
vlock = 0;
continue;
}
else if(chrlo[i]==0x88)
{
vlock = 1;
continue;
}
if(((chrlo[i]==4)||(chrlo[i]==5))&&!vlock)
setchr1r(0x10,i<<10,chr&1);
else
setchr1(i<<10,chr);
}
switch(mirr)
{
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:MatChung,项目名称:fceux-ps3,代码行数:34,代码来源:253.cpp
示例8: Sync
static void Sync(void)
{
setprg4r(1,0x5000,1);
setprg8r(1,0x6000,1);
setprg32(0x8000,prg);
setchr8(0);
}
开发者ID:IcooN,项目名称:OpenEmu,代码行数:7,代码来源:smb2j.c
示例9: 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
示例10: 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
示例11: MDFN_VSUniPower
void MDFN_VSUniPower(void)
{
coinon = 0;
VSindex = 0;
memset(WRAM, 0xFF, 8192);
setprg8r(0x10, 0x6000, 0);
}
开发者ID:IcooN,项目名称:OpenEmu,代码行数:8,代码来源:vsuni.cpp
示例12: Sync
static void Sync(void) {
setprg8(0x6000, reg);
setprg8(0x8000, ~3);
setprg8(0xa000, ~2);
setprg8r(0x10, 0xc000, 0);
setprg8(0xe000, ~0);
setchr8(0);
}
开发者ID:DanielFontes,项目名称:Provenance,代码行数:8,代码来源:lh32.cpp
示例13: M153Power
static void M153Power(void)
{
BandaiSync();
setprg8r(0x10,0x6000,0);
SetReadHandler(0x6000,0x7FFF,CartBR);
SetWriteHandler(0x6000,0x7FFF,CartBW);
SetReadHandler(0x8000,0xFFFF,CartBR);
SetWriteHandler(0x8000,0xFFFF,BandaiWrite);
}
开发者ID:alexbevi,项目名称:emu-ex-plus-alpha,代码行数:9,代码来源:bandai.cpp
示例14: UNLSC127Power
static void UNLSC127Power(void) {
Sync();
setprg8r(0x10, 0x6000, 0);
setprg8(0xE000, ~0);
SetReadHandler(0x6000, 0x7fff, CartBR);
SetWriteHandler(0x6000, 0x7fff, CartBW);
SetReadHandler(0x8000, 0xFFFF, CartBR);
SetWriteHandler(0x8000, 0xFFFF, UNLSC127Write);
}
开发者ID:HerbFargus,项目名称:FCE3D,代码行数:9,代码来源:sc-127.cpp
示例15: Sync
static void Sync(void) {
setprg2r(0x10, 0x0800, 0);
setprg2r(0x10, 0x1000, 1);
setprg2r(0x10, 0x1800, 2);
setprg8r(0x10, 0x6000, 1);
setprg16(0x8000, 0);
setprg16(0xC000, ~0);
setchr8(0);
}
开发者ID:frangarcj,项目名称:libretro-fceumm,代码行数:9,代码来源:famicombox.c
示例16: Sync
static void Sync(void) {
setchr2(0x0000, chr_reg[0]);
setchr2(0x0800, chr_reg[1]);
setchr2(0x1000, chr_reg[2]);
setchr2(0x1800, chr_reg[3]);
setprg8r(0x10, 0x6000, 0);
setprg16r((PRGptr[1]) ? kogame : 0, 0x8000, prg_reg);
setprg16(0xC000, ~0);
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:9,代码来源:68.cpp
示例17: MMC5WRAM
static void MMC5WRAM(uint32 A, uint32 V)
{
//printf("%02x\n",V);
V=MMC5WRAMIndex[V&7];
if(V!=255)
{
setprg8r(0x10,A,V);
MMC5MemIn[(A-0x6000)>>13]=1;
}
开发者ID:IcooN,项目名称:OpenEmu,代码行数:9,代码来源:mmc5.cpp
示例18: SyncLH10
static void SyncLH10(void) {
setprg8(0x6000, ~1);
setprg8(0x8000, reg[6]);
setprg8(0xA000, reg[7]);
setprg8r(0x10, 0xC000, 0);
setprg8(0xE000, ~0);
setchr8(0);
setmirror(0);
}
开发者ID:BigMacStorm,项目名称:NES_machine,代码行数:9,代码来源:ks7037.cpp
示例19: Sync
static void Sync(void)
{
setprg8r(0x10,0x6000,0);
setprg8(0x8000,prg[0]);
setprg8(0xA000,prg[1]);
setprg8(0xC000,prg[2]);
setprg8(0xE000,prg[3]);
setchr8(chr);
}
开发者ID:TijmenW,项目名称:tom7,代码行数:10,代码来源:176.cpp
示例20: Power
static void Power(CartInfo *info)
{
if(!info->battery)
memset(WRAM, 0xFF, 8192);
PRGBank32 = 0;
CHRBanks[0] = 0;
CHRBanks[1] = 1;
setprg8r(0x10, 0x6000, 0);
Sync();
}
开发者ID:BadyRaty,项目名称:Mednafen-Core,代码行数:10,代码来源:34.cpp
注:本文中的setprg8r函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论