Hi friends, I am using inline assembly in my ISR routine. When i observe the generated sorce file. AT the start of ISR the compiler generates a code to save the ACC, DPL, DPH etc and the general purpose regi used by routine. Now i want to avoid the generation of code to save device context. I am using a saperate function to save and restore context. I want this becuse i am doing task switching in ISR so the restored context will be different then the saved one. I know that other compiler provides this facility by using control directives like "NAKED". Is there any such directive in KEIL compiler so that i can avoid generation of context save and restore by the compiler? Thank you, Dhaval Shah
I don't think there is a facility like this. Rather than using inline assembly you would probably be better to write your ISRs entirely in assembler in a separate file. Have you considered using Keil's RTX OS instead of rolling your own?