Iam using ISR routine for my program. My code was in C Language.But Inline Assembly SRC file is enabled. How to write an ISR routine by enabling SRC and In Line Assembly. Please Reply If some knows answer.
If you need assembly for your ISRs, is there anything that keeps you from putting them in a separate .asm file ? That would eliminate the whole hassle of dealing with in-line assembly and the SRC directive.
Absolutely!
It is completely pointless to use inline assembler here!
An ISR is essentially self-contained - it should not be called by 'C', so there is no need to worry about calling conventions.
Just write it in assembler!
Sir, In My Program 'C' is a must. I need to Include ISR. It is a little bit big flow. If i introduce ISR,the Program Counter points in some other function instead of pointing Main Program. Please say how to Include ISR using 'C' Program...
So just read the section in the Manual about interrupt functions!
http://www.keil.com/support/man/docs/c51/c51_le_funcdecls.htm