how do i get variable address defined in C inside assembly instructions while writing some assembly instructions between C code.
Ashutosh Tiwari Bangalore
If you need to ask, you shouldn't be using inline assembly. Seriously.
Make up your mind on what you're going to program in: C, or assembler. Inline assembly will lose you more of the advantages of either than you're ever likely to win back.
There is an example already in bin folder of your computer. please check out. it may not be exactly what you wanted but it'll give a kick start.
"There is an example already in bin folder ..."
Doh! Of course, the bin folder (slapping forehead with open palm) -- the first place to look for examples!
does anybody not know the answer?
i look in the bin and not get examples.
i wait with same problem and must have the answer!
Doh! Of course, the bin folder (slapping forehead with open palm) -- the first place to look for examples!"
"does anybody not know the answer?"
When so many people are telling you, this is a Bad Idea, do you not think that it might be a good idea to heed that advice??
But, if you relly want to find examples, do you really think that "bin" would be an appropriate name for a folder containing examples?!
If you've managed to find the 'bin' folder, try looking at the other folders nearby - see if you can't find one with a more appropriate name...
You must have the answer? Then pay someone for doing your work. Or spend some time to teach yourself - with enough knowledge you would know if this is a good or bad idea...
Well you, for one, appear to not know the answer.
so,,, there are many persons here which say there are clever and talented persons here.
i say i need answer but no body can give!!!!!
why can not any body give the answer?????????????
then,,,, the persons not clever and talented that they think ??????????????
you have got the answer umpteen times
DO IT IN A .A51 MODULE
do you want us to answer "how do I commit suicide" by "buy a rope" instead of "that is not a good idea"?
Erik
When debating with a 5-year-old, you can use reverse psychology to get them to do just about anything. Since you are trying reversed psychology, I must assume that you expect answers from 5-year-olds. Alas, not too many have started with assembly programming at that age...
If you have a school assignment that specifically requires you to use inline assembler: Please write a post telling us that. If you do not have a specific requirement to use inline assembler - do look at the suggestions you have received: Optimize your C code, or write the whole function in assembler. Just look at the disassembly of the C function - that will give you a skeleton for your new assembler file.
cheers, erik, you actually made me laugh, and I have to tell you - my day sucked. well done :)
On the contrary. You were given the answer several times over. You just chose to ignore them all, apparently because you think you know better than the people you asked. Your bad.
the persons not clever and talented that they think ????
Do you really believe that insulting people will make them more interested in helping you?
I am Sorry, i m not hurting anybody, i just thought may be my quetion was wrong & might be possible someone has faced that problem, i never wanted to hurt anybody, sir. I m sorry, its my mistake to ask u. THANKS FOR UR KIND HELP.
plz never consider that someone is dominating u sir, & i just asked that quetion 2 times, second time i wanted to crrect my question. but that was my mistake.
Sorry for that sir.
Ashutosh Tiwari Bangalore, India.
sir, you not understand my questions do you??????
i ask for good correct answer and you give me bad repsonses.
why ansewere my quesntions when you do not understand. let some body that understands do answeres!
no harm done - take it easy. I hope you understood the motivation of the answers you got and why you should follow their spirit. good luck.
View all questions in Keil forum