how can i include assembly language instuction in c programming
s u r correct , am a beginner in this, thanks for ur reply
"how we can access each bit of a register using keil"
You really need to spend some time familiarising yourself with the Keil C51 manual:
http://www.keil.com/support/man/docs/c51/
For this particular question, see: http://www.keil.com/support/man/docs/c51/c51_le_bitaddrobj.htm
thankssssssss
how we can access each bit of a register using keil, means if i need 5 th bit of a register value ,without AND how can i take it
You can start by looking here.
http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm
"can't be done in C51, or is an assembler function that you call from C51...?"
Should be: "can't be done in C51, or in an assembler function that you call from C51...?"
A browse through the compiler manual would quite soon reveal how you can do this.
A more important question is: why do you think you need to do this? Most times when this question is asked at such a basic level as this it's due to a fundamental misunderstanding or miconception of how the tools work.
Thus it would be helpful if you would explain why you think this is necessary - what are you trying to do that (you think) can't be done in C51, or is an assembler function that you call from C51...?
View all questions in Keil forum