I would like to change the order that some of the registers are stored on the stack when an interrupt occurs. Ideally I would like to store the IE register first. Does anyone know if it is possible to stop the C51 compiler from pushing and poping registers from the stack automatically in an interrupt routine, so that I can do this manually, in the order I would like?
Why would you want to push/pop IE anyway? Well, since I do it I'll tell you why
OLD local U8 saveIE; SaveIE = IE; EA = FALSE; .... IE = save IE; NEW: Push(IE); EA = FALSE; .... Pop(IE);