本文整理汇总了C++中OpRead16函数的典型用法代码示例。如果您正苦于以下问题:C++ OpRead16函数的具体用法?C++ OpRead16怎么用?C++ OpRead16使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OpRead16函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: opBE16
static UINT32 opBE16(void) /* TRUSTED */
{
if ((_Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例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;
}
示例3: opBN16
UINT32 opBN16(void) /* TRUSTED */
{
if ((_S))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例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;
}
示例5: opBNV16
UINT32 opBNV16(void) /* TRUSTED */
{
if (!(_OV))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例6: opBH16
UINT32 opBH16(void) /* TRUSTED */
{
if (!(_CY | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例7: opBNL16
static UINT32 opBNL16(void) /* TRUSTED */
{
if (!(_CY))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例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;
}
示例9: opBLE16
UINT32 opBLE16(void) /* TRUSTED */
{
NORMALIZEFLAGS();
if (((_S ^ _OV) | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例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;
}
示例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;
}
示例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;
}
示例13: opBGE16
static UINT32 opBGE16(void) /* TRUSTED */
{
NORMALIZEFLAGS();
if (!(_S ^ _OV))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例14: NORMALIZEFLAGS
UINT32 v60_device::opBLE16() /* TRUSTED */
{
NORMALIZEFLAGS();
if (((_S ^ _OV) | _Z))
{
PC += (INT16)OpRead16(PC + 1);
return 0;
}
return 3;
}
示例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;
}