本文整理汇总了C++中DID函数的典型用法代码示例。如果您正苦于以下问题:C++ DID函数的具体用法?C++ DID怎么用?C++ DID使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DID函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: g_xchg_cx_ax
int g_xchg_cx_ax(void)
{
if (!lbl)
{
m--;
if (*m == 145) { DID(-1); }
m++;
}
GEN(145);
DID(1);
}
示例2: g_pop_di
int g_pop_di(void)
{
if (!lbl)
{
m--;
if (*m == 87) { DID(-1) };
m++;
}
示例3: _tk_def_dev
/*
* Device registration
*/
RAW_U32 _tk_def_dev( CONST UB *devnm, CONST T_DDEV *ddev, void *caller_gp )
{
DevCB *devcb;
INT len, evttyp;
ER ercd;
len = ChkSpaceBstrR(devnm, 0);
if ( len <= 0 || len > MaxRegDev ) {
RAW_ASSERT(0);
}
/* Search whether 'devnm' device is registered */
devcb = searchDevCB(devnm);
if ( devcb == 0 ) {
if ( ddev == 0 ) {
ercd = E_NOEXS;
goto err_ret2;
}
/* Get 'devcb' for new registration because it is not
registered */
devcb = newDevCB(devnm);
if ( devcb == NULL ) {
ercd = E_LIMIT;
goto err_ret2;
}
}
if ( ddev != NULL ) {
/* Set/update device registration information */
devcb->ddev = *ddev;
evttyp = TSEVT_DEVICE_REGIST;
} else {
if ( !isQueEmpty(&devcb->openq) ) {
/* In use (open) */
ercd = E_BUSY;
goto err_ret2;
}
/* Device unregistration */
delDevCB(devcb);
evttyp = TSEVT_DEVICE_DELETE;
}
return DID(devcb);
}
示例4: g_pop_dx
int g_pop_dx(void)
{
if (!lbl)
{
m--;
if (*m == 82) { DID(-1); }
if (*m == 80)
{
return g_mov_dx_ax() - 1;
}
if (*m == 83)
{
return g_mov_dx_bx() - 1;
}
if (*m == 81)
{
return g_mov_dx_cx() - 1;
}
m++;
}
GEN(90);
DID(1);
}
示例5: g_mov_ah_al
int g_mov_ah_al(void) { GEN(0x88); GEN(0xC4); DID(2); }
示例6: g_mov_al_ah
int g_mov_al_ah(void) { GEN(0x88); GEN(0xE0); DID(2); }
示例7: g_add_al
int g_add_al(sbyte s) { GEN(4); GEN(s); DID(2); }
示例8: g_jg
int g_jg(sbyte d) { GEN(0x7F); GEN(d); DID(2); }
示例9: g_jge
int g_jge(sbyte d) { GEN(0x7D); GEN(d); DID(2); }
示例10: g_cmp_ax_dx
int g_cmp_ax_dx(void) { GEN(0x39); GEN(0xD0); DID(2); }
示例11: g_add_BX_ax
int g_add_BX_ax(void) { GEN(1); GEN(7); DID(2); }
示例12: g_cmp_al_dl
int g_cmp_al_dl(void) { GEN(0x38); GEN(0xD0); DID(2); }
示例13: g_cmp_dl
int g_cmp_dl(byte q) { GEN(0x80); GEN(0xFA); GEN(q); DID(3); }
示例14: g_mov_ax_DI
int g_mov_ax_DI(void) { GEN(139); GEN(5); DID(2); }
示例15: g_mov_al_SI
int g_mov_al_SI(void) { GEN(138); GEN(4); DID(2); }