Example #1
0
char OS_DI (void)
{
    char temp;
    temp = _getCC_();
    _sim_();
    return temp;
}
/**
  * @brief  Utility function used to read CC register.
  * @param  None
  * @retval CPU CC register value
  */
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_*/
}
Example #3
0
uint8_t ITC_GetCPUCC(void)
{
#ifdef _COSMIC_
    _asm("push cc");
    _asm("pop a");
    return; /* Ignore compiler warning, the returned value is in A register */
#endif
    
#ifdef _RAISONANCE_
    return _getCC_();
#endif

#ifdef _IAR_SYSTEMS_
    __asm("push cc");
    __asm("pop a");
#endif
}
Example #4
0
void _OS_DI_INT (void)
{
    _OS_Temp_I = _getCC_();
    _sim_();
}