Mehmet Fide

CCR Interrupt Mask Bit in C?

Discussion created by Mehmet Fide on Apr 4, 2008
Latest reply on Dec 19, 2012 by bigmac
Hi,
 
How can I move CCR to my local variable in C?
 
I have to test I bit:
 
void foo()
{
   unsigned char before = CCR_I <---
  
   DisableInterrupts;
   ....
   ....
   if(before) EnableInterrupts;
}
 
10x
BP.


Message Edited by BasePointer on 2008-04-04 12:39 PM

Outcomes