swallow1029 发表于 2012-4-19 14:05:03

_asm("rim"); //Enable interrupt

 如题,为什么这是 使能中断?

hui-377581 发表于 2013-1-21 15:53:40

回复:_asm(

我也是新手 学习SMT8库真不容易
想看懂库真是费劲啊! 也给你顶顶 等高手解解!!!
uint8_t ITC_GetCPUCC(void)
{
#ifdef _COSMIC_
  _asm("push cc");
  _asm("pop a");
  return; /* Ignore compiler warning, the returned value is in A register */
#elif defined _RAISONANCE_ /* _RAISONANCE_ */
  return _getCC_();
#else /* _IAR_ */
  asm("push cc");
  asm("pop a"); /* Ignore compiler warning, the returned value is in A register */
#endif /* _COSMIC_*/
}
页: [1]
查看完整版本: _asm("rim"); //Enable interrupt