本文整理汇总了C++中OpRead16函数的典型用法代码示例。如果您正苦于以下问题:C++ OpRead16函数的具体用法?C++ OpRead16怎么用?C++ OpRead16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OpRead16函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: opBE16
static UINT32 opBE16(void) /* TRUSTED */
{
if ((_Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:cdenix,项目名称:ps3-mame-0125,代码行数:10,代码来源:op4.c
示例2: opBNH16
static UINT32 opBNH16(v60_state *cpustate) /* TRUSTED */
{
if ((cpustate->_CY | cpustate->_Z))
{
cpustate->PC += (INT16)OpRead16(cpustate->program, cpustate->PC + 1);
return 0;
}
return 3;
}
开发者ID:Paulodx,项目名称:sdl-mame-wii,代码行数:10,代码来源:op4.c
示例3: opBN16
UINT32 opBN16(void) /* TRUSTED */
{
if ((_S))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:libretro,项目名称:mame2003-libretro,代码行数:10,代码来源:op4.c
示例4: opBSR
UINT32 opBSR(void) /* TRUSTED */
{
// Save Next PC onto the stack
SP -= 4;
MemWrite32(SP, PC+3);
// Jump to subroutine
PC += (INT16)OpRead16(PC + 1);
return 0;
}
开发者ID:libretro,项目名称:mame2003-libretro,代码行数:10,代码来源:op4.c
示例5: opBNV16
UINT32 opBNV16(void) /* TRUSTED */
{
if (!(_OV))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:libretro,项目名称:mame2003-libretro,代码行数:10,代码来源:op4.c
示例6: opBH16
UINT32 opBH16(void) /* TRUSTED */
{
if (!(_CY | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:libretro,项目名称:mame2003-libretro,代码行数:10,代码来源:op4.c
示例7: opBNL16
static UINT32 opBNL16(void) /* TRUSTED */
{
if (!(_CY))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:cdenix,项目名称:ps3-mame-0125,代码行数:10,代码来源:op4.c
示例8: opDBNH
static UINT32 opDBNH(v60_state *cpustate, int reg) /* TRUSTED */
{
cpustate->reg[reg]--;
if ((cpustate->reg[reg] != 0) && (cpustate->_CY | cpustate->_Z))
{
cpustate->PC += (INT16)OpRead16(cpustate, cpustate->PC + 2);
return 0;
}
return 4;
}
开发者ID:LibXenonProject,项目名称:mame-lx,代码行数:12,代码来源:op6.c
示例9: opBLE16
UINT32 opBLE16(void) /* TRUSTED */
{
NORMALIZEFLAGS();
if (((_S ^ _OV) | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:Ezio-PS,项目名称:mame2003-libretro,代码行数:12,代码来源:op4.c
示例10: opBLE16
static UINT32 opBLE16(v60_state *cpustate) /* TRUSTED */
{
NORMALIZEFLAGS(cpustate);
if (((cpustate->_S ^ cpustate->_OV) | cpustate->_Z))
{
cpustate->PC += (INT16)OpRead16(cpustate, cpustate->PC + 1);
return 0;
}
return 3;
}
开发者ID:kleopatra999,项目名称:mess-svn,代码行数:12,代码来源:op4.c
示例11: opDBR
static UINT32 opDBR(v60_state *cpustate, int reg) /* TRUSTED */
{
cpustate->reg[reg]--;
if (cpustate->reg[reg] != 0)
{
cpustate->PC += (INT16)OpRead16(cpustate->program, cpustate->PC + 2);
return 0;
}
return 4;
}
开发者ID:DarrenBranford,项目名称:MAME4iOS,代码行数:12,代码来源:op6.c
示例12: opBGE16
static UINT32 opBGE16(v60_state *cpustate) /* TRUSTED */
{
NORMALIZEFLAGS(cpustate);
if (!(cpustate->_S ^ cpustate->_OV))
{
cpustate->PC += (INT16)OpRead16(cpustate->program, cpustate->PC + 1);
return 0;
}
return 3;
}
开发者ID:Paulodx,项目名称:sdl-mame-wii,代码行数:12,代码来源:op4.c
示例13: opBGE16
static UINT32 opBGE16(void) /* TRUSTED */
{
NORMALIZEFLAGS();
if (!(_S ^ _OV))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:cdenix,项目名称:ps3-mame-0125,代码行数:12,代码来源:op4.c
示例14: NORMALIZEFLAGS
UINT32 v60_device::opBLE16() /* TRUSTED */
{
NORMALIZEFLAGS();
if (((_S ^ _OV) | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
开发者ID:jiangzhonghui,项目名称:mame,代码行数:12,代码来源:op4.c
示例15: am2DisplacementIndexed16
static UINT32 am2DisplacementIndexed16(v60_state *cpustate)
{
cpustate->amflag = 0;
switch (cpustate->moddim)
{
case 0:
cpustate->amout = cpustate->reg[cpustate->modval2 & 0x1F] + (INT16)OpRead16(cpustate, cpustate->modadd + 2) + cpustate->reg[cpustate->modval & 0x1F];
break;
case 1:
cpustate->amout = cpustate->reg[cpustate->modval2 & 0x1F] + (INT16)OpRead16(cpustate, cpustate->modadd + 2) + cpustate->reg[cpustate->modval & 0x1F] * 2;
break;
case 2:
cpustate->amout = cpustate->reg[cpustate->modval2 & 0x1F] + (INT16)OpRead16(cpustate, cpustate->modadd + 2) + cpustate->reg[cpustate->modval & 0x1F] * 4;
break;
case 3:
cpustate->amout = cpustate->reg[cpustate->modval2 & 0x1F] + (INT16)OpRead16(cpustate, cpustate->modadd + 2) + cpustate->reg[cpustate->modval & 0x1F] * 8;
break;
}
return 4;
}
开发者ID:NastyNoah,项目名称:groovyarcade.groovymame,代码行数:22,代码来源:am2.c
示例16: am2DisplacementIndexed16
UINT32 am2DisplacementIndexed16(void)
{
amFlag = 0;
switch (modDim)
{
case 0:
amOut = v60.reg[modVal2&0x1F] + (INT16)OpRead16(modAdd+2) + v60.reg[modVal&0x1F];
break;
case 1:
amOut = v60.reg[modVal2&0x1F] + (INT16)OpRead16(modAdd+2) + v60.reg[modVal&0x1F] * 2;
break;
case 2:
amOut = v60.reg[modVal2&0x1F] + (INT16)OpRead16(modAdd+2) + v60.reg[modVal&0x1F] * 4;
break;
case 3:
amOut = v60.reg[modVal2&0x1F] + (INT16)OpRead16(modAdd+2) + v60.reg[modVal&0x1F] * 8;
break;
}
return 4;
}
开发者ID:libretro,项目名称:mame2003-libretro,代码行数:22,代码来源:am2.c
示例17: am2PCDisplacementIndirectIndexed16
static UINT32 am2PCDisplacementIndirectIndexed16(v60_state *cpustate)
{
cpustate->amflag = 0;
switch (cpustate->moddim)
{
case 0:
cpustate->amout = cpustate->program->read_dword_unaligned(cpustate->PC + (INT16)OpRead16(cpustate, cpustate->modadd + 2)) + cpustate->reg[cpustate->modval & 0x1F];
break;
case 1:
cpustate->amout = cpustate->program->read_dword_unaligned(cpustate->PC + (INT16)OpRead16(cpustate, cpustate->modadd + 2)) + cpustate->reg[cpustate->modval & 0x1F] * 2;
break;
case 2:
cpustate->amout = cpustate->program->read_dword_unaligned(cpustate->PC + (INT16)OpRead16(cpustate, cpustate->modadd + 2)) + cpustate->reg[cpustate->modval & 0x1F] * 4;
break;
case 3:
cpustate->amout = cpustate->program->read_dword_unaligned(cpustate->PC + (INT16)OpRead16(cpustate, cpustate->modadd + 2)) + cpustate->reg[cpustate->modval & 0x1F] * 8;
break;
}
return 4;
}
开发者ID:NastyNoah,项目名称:groovyarcade.groovymame,代码行数:22,代码来源:am2.c
示例18: am2PCDisplacementIndirectIndexed16
static UINT32 am2PCDisplacementIndirectIndexed16(void)
{
amFlag = 0;
switch (modDim)
{
case 0:
amOut = MemRead32(PC + (INT16)OpRead16(modAdd+2)) + v60.reg[modVal&0x1F];
break;
case 1:
amOut = MemRead32(PC + (INT16)OpRead16(modAdd+2)) + v60.reg[modVal&0x1F] * 2;
break;
case 2:
amOut = MemRead32(PC + (INT16)OpRead16(modAdd+2)) + v60.reg[modVal&0x1F] * 4;
break;
case 3:
amOut = MemRead32(PC + (INT16)OpRead16(modAdd+2)) + v60.reg[modVal&0x1F] * 8;
break;
}
return 4;
}
开发者ID:BirchJD,项目名称:advancemame-0.106.1-RPi,代码行数:22,代码来源:am2.c
示例19: opDBLT
static UINT32 opDBLT(v60_state *cpustate, int reg) /* TRUSTED */
{
cpustate->reg[reg]--;
NORMALIZEFLAGS(cpustate);
if ((cpustate->reg[reg] != 0) && (cpustate->_S ^ cpustate->_OV))
{
cpustate->PC += (INT16)OpRead16(cpustate, cpustate->PC + 2);
return 0;
}
return 4;
}
开发者ID:LibXenonProject,项目名称:mame-lx,代码行数:13,代码来源:op6.c
示例20: am3PCDoubleDisplacement16
static UINT32 am3PCDoubleDisplacement16(void)
{
switch (modDim)
{
case 0:
MemWrite8(MemRead32(PC + (INT16)OpRead16(modAdd+1)) + (INT16)OpRead16(modAdd+3), modWriteValB);
break;
case 1:
MemWrite16(MemRead32(PC + (INT16)OpRead16(modAdd+1)) + (INT16)OpRead16(modAdd+3), modWriteValH);
break;
case 2:
MemWrite32(MemRead32(PC + (INT16)OpRead16(modAdd+1)) + (INT16)OpRead16(modAdd+3), modWriteValW);
break;
}
return 5;
}
开发者ID:shangma,项目名称:mame0112,代码行数:17,代码来源:am3.c
注:本文中的OpRead16函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论