how do i get variable address defined in C inside assembly instructions while writing some assembly instructions between C code.
Ashutosh Tiwari Bangalore
"i'm using in-line assembly to write routine only."
What?
Do you mean you're writing the entire routine in inline assembler?! That would be completely pointless!
If the complete routine is assembly, then put it into a proper assembly module - an .A51 file, or whatever.
For an example of how to write a C51-callable function in assembler, see: www.8052.com/.../read.phtml