本文整理汇总了C++中setprg16函数的典型用法代码示例。如果您正苦于以下问题:C++ setprg16函数的具体用法?C++ setprg16怎么用?C++ setprg16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setprg16函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: NROM128Reset
static void NROM128Reset(CartInfo *info)
{
setprg16(0x8000,0);
setprg16(0xC000,0);
setchr8(0);
SetReadHandler(0x8000,0xFFFF,CartBR);
}
开发者ID:ben401,项目名称:OpenEmu,代码行数:7,代码来源:simple.cpp
示例2: Sync
static void Sync(void) {
setprg16(0x8000, preg);
setprg16(0xC000, ~0);
setchr8(0);
if (mirr)
setmirror(mirr);
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:7,代码来源:71.c
示例3: 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
示例4: BMCF15PW
static void BMCF15PW(uint32 A, uint8 V) {
uint32 bank = EXPREGS[0] & 0xF;
uint32 mode = (EXPREGS[0] & 8) >> 3;
uint32 mask = ~(mode);
setprg16(0x8000, (bank & mask));
setprg16(0xC000, (bank & mask) | mode);
}
开发者ID:AKuHAK,项目名称:Fceumm-PS2,代码行数:7,代码来源:f-15.c
示例5: UNLYOKOSync
static void UNLYOKOSync(void)
{
setmirror((mode & 1)^1);
setchr2(0x0000,reg[3]);
setchr2(0x0800,reg[4]);
setchr2(0x1000,reg[5]);
setchr2(0x1800,reg[6]);
if(mode & 0x10)
{
uint32 base = (bank & 8) << 1;
setprg8(0x8000,(reg[0]&0x0f)|base);
setprg8(0xA000,(reg[1]&0x0f)|base);
setprg8(0xC000,(reg[2]&0x0f)|base);
setprg8(0xE000,0x0f|base);
}
else
{
if(mode & 8)
setprg32(0x8000,bank >> 1);
else
{
setprg16(0x8000,bank);
setprg16(0xC000,~0);
}
}
开发者ID:TijmenW,项目名称:tom7,代码行数:25,代码来源:yoko.cpp
示例6: tekprom
static void tekprom(void)
{
switch(tkcom[0]&3)
{
case 1: // 16 KB
setprg16(0x8000,prgb[0]);
setprg16(0xC000,prgb[2]);
break;
case 2: //2 = 8 KB ??
if(tkcom[0]&0x4)
{
setprg8(0x8000,prgb[0]);
setprg8(0xa000,prgb[1]);
setprg8(0xc000,prgb[2]);
setprg8(0xe000,prgb[3]);
}
else
{
if(tkcom[0]&0x80)
setprg8(0x6000,prgb[3]);
setprg8(0x8000,prgb[0]);
setprg8(0xa000,prgb[1]);
setprg8(0xc000,prgb[2]);
setprg8(0xe000,~0);
}
break;
case 0:
case 3:
setprg8(0x8000,prgb[0]);
setprg8(0xa000,prgb[1]);
setprg8(0xc000,prgb[2]);
setprg8(0xe000,prgb[3]);
break;
}
}
开发者ID:ben401,项目名称:OpenEmu,代码行数:35,代码来源:90.cpp
示例7: MPower
static void MPower(void) {
datareg = 0;
Sync();
setprg16(0x8000, 0);
setprg16(0xC000, ~0);
SetWriteHandler(0x8000, 0xFFFF, MWrite);
SetReadHandler(0x8000, 0xFFFF, CartBR);
}
开发者ID:AKuHAK,项目名称:Fceumm-PS2,代码行数:8,代码来源:185.c
示例8: Sync
static void Sync(void) {
if (mode) {
setprg16(0x8000, prg);
setprg16(0xC000, prg);
} else
setprg32(0x8000, prg >> 1);
setchr8(chr);
setmirror(mirr);
}
开发者ID:CharlexH,项目名称:Provenance,代码行数:9,代码来源:225.cpp
示例9: UNLRT01Power
static void UNLRT01Power(void) {
setprg16(0x8000, 0);
setprg16(0xC000, 0);
setchr2(0x0000,0);
setchr2(0x0800,0);
setchr2(0x1000,0);
setchr2(0x1800,0);
SetReadHandler(0x8000, 0xFFFF, UNLRT01Read);
}
开发者ID:Rakashazi,项目名称:emu-ex-plus-alpha,代码行数:9,代码来源:rt-01.cpp
示例10: 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
示例11: CNROMReset
static void CNROMReset(CartInfo *info)
{
latche = 0;
setprg16(0x8000,0);
setprg16(0xC000,1);
setchr8(0);
SetReadHandler(0x8000,0xFFFF,CartBR);
SetWriteHandler(0x8000,0xffff,CNROMWrite);
}
开发者ID:ben401,项目名称:OpenEmu,代码行数:10,代码来源:simple.cpp
示例12: Sync
static void Sync(void) {
uint8 prg = (addrlatch & 7);
setchr8(datalatch);
if(addrlatch & 0x80) {
setprg16(0x8000,prg);
setprg16(0xC000,prg);
} else {
setprg32(0x8000,prg >> 1);
}
setmirror(MI_V);
}
开发者ID:CraigularB,项目名称:Provenance,代码行数:11,代码来源:eh8813a.cpp
示例13: Sync
static void Sync(void)
{
setmirror(mirr);
setprg8r(0x10,0x6000,0);
setchr8(0);
if(prgmode)
setprg32(0x8000,prg&7);
else {
setprg16(0x8000,prg&0x0f);
setprg16(0xC000,0);
}
}
开发者ID:ficoos,项目名称:fceu-next,代码行数:12,代码来源:dance2000.c
示例14: Sync
static void Sync(void) {
setmirror((mode ^ 1) & 1);
setprg8r(0x10, 0x6000, 0);
setchr4(0x0000, lastnt);
setchr4(0x1000, 1);
if (mode & 4)
setprg32(0x8000, prg & 7);
else {
setprg16(0x8000, prg & 0x0f);
setprg16(0xC000, 0);
}
}
开发者ID:CraigularB,项目名称:Provenance,代码行数:12,代码来源:dance2000.cpp
示例15: Sync
static void Sync(void) {
uint32 i;
for (i = 0; i < 8; i++)
setchr1(i << 10, chrlo[i] | (chrhi[i] << 8));
setprg8r(0x10, 0x6000, 0);
setprg16(0x8000, prg);
setprg16(0xC000, ~0);
if (mirrisused)
setmirror(mirr ^ 1);
else
setmirror(MI_0);
}
开发者ID:CatalystG,项目名称:fceu-next,代码行数:12,代码来源:156.c
示例16: Sync
static void Sync(void)
{
if(latche)
{
if(latche&0x10)
setprg16(0x8000,(latche&7));
else
setprg16(0x8000,(latche&7)|8);
}
else
setprg16(0x8000,7+(ROM_size>>4));
}
开发者ID:ficoos,项目名称:fceu-next,代码行数:12,代码来源:karaoke.c
示例17: UNROMSync
static void UNROMSync(void) {
// static uint32 mirror_in_use = 0;
// if (PRGsize[0] <= 128 * 1024) {
// setprg16(0x8000, latche & 0x7);
// if (latche & 8) mirror_in_use = 1;
// if (mirror_in_use)
// setmirror(((latche >> 3) & 1) ^ 1); // Higway Star Hacked mapper, disabled till new mapper defined
// } else
setprg16(0x8000, latche);
setprg16(0xc000, ~0);
setchr8(0);
}
开发者ID:Plombo,项目名称:fceux,代码行数:12,代码来源:datalatch.cpp
示例18: Sync
static void Sync(void) {
uint8 bank = (ctrl & 3) << 3;
setchr4(0x0000, (prgchr[0] >> 3) | (bank << 2));
setchr4(0x1000, (prgchr[1] >> 3) | (bank << 2));
if (ctrl & 8) {
setprg16(0x8000, bank | (prgchr[0] & 6) | 0); // actually, both 0 and 1 registers used, but they will switch each PA12 transition
setprg16(0xc000, bank | (prgchr[0] & 6) | 1); // if bits are different for both registers, so they must be programmed strongly the same!
} else {
setprg16(0x8000, bank | (prgchr[0] & 7));
setprg16(0xc000, bank | 7 );
}
setmirror(((ctrl & 4) >> 2) ^ 1);
}
开发者ID:Brunnis,项目名称:libretro-fceumm,代码行数:13,代码来源:12in1.cpp
示例19: Sync
static void Sync(void) {
uint8 bank = (reg[2] & 3) << 3;
setmirror((reg[0] & 1) ^ 1);
setprg8r(0x10, 0x6000, 0);
setchr8(0);
if (reg[0] & 2) {
setprg16(0x8000, (reg[1] & 7) | bank);
setprg16(0xC000, ((~0) & 7) | bank);
} else {
setprg16(0x8000, (reg[1] & 6) | bank);
setprg16(0xC000, (reg[1] & 6) | bank | 1);
}
}
开发者ID:sashavolv2,项目名称:tasbot,代码行数:13,代码来源:178.cpp
示例20: NROMPower
static void NROMPower(void) {
setprg8r(0x10, 0x6000, 0); // Famili BASIC (v3.0) need it (uses only 4KB), FP-BASIC uses 8KB
setprg16(0x8000, 0);
setprg16(0xC000, ~0);
setchr8(0);
SetReadHandler(0x6000, 0x7FFF, CartBR);
SetWriteHandler(0x6000, 0x7FFF, CartBW);
SetReadHandler(0x8000, 0xFFFF, CartBR);
#ifdef DEBUG_MAPPER
SetWriteHandler(0x4020, 0xFFFF, NROMWrite);
#endif
}
开发者ID:Plombo,项目名称:fceux,代码行数:14,代码来源:datalatch.cpp
注:本文中的setprg16函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论