I want to write a macro which pushes IE onto stack and pops it out soon. How can I do it? How to embed the code 0xc0, 0xa8 PUSH IE and 0xd0, 0xa8 POP IE into c program?
Maybe this will work:
#define SAVEIE() { bit ie=IE; IE=0; #define LOADIE() IE=ie; }