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?
I just use:
{ bit SavedIe = IE; IE = 0; //the synchronize code IE = SavedIe; }
Change 'bit IE' to 'unsigned char IE' and your example will work. Note: IE is a Byte. EA is a Bit