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.
Per Westermark! Did you ever pay somebody to do your homework?! :) :) :)
The people who have the knowledge to do someone elses homework for money would probably prefer not to help. I would think most developers would prefer to earn money for solving real problems, instead of spending the time pushing people through an education they are not interested in committing themself to.
I'm a bit surprised about the huge amount of questions on every forum I visit. People always seem to think that asking in a forum (or on a mailing list) is an excellent short-cut. But how many forums can match the speed of Google, and have the same 24x7 availability?
I would definitely prefer 5 minutes with Google instead of 2 days on a forum. Some of the saved time could then be used to learn something new, reducing the need for yet another question tomorrow or next week.
Per Westermark! Did you ever pay somebody to do your homework?! Based on Pers answers to various topics it is proven he did not, but actually, as anyone should, did it himself.
Doing someones homework for them (whether paid or not) is a surefire way to get somebody totally unqualified to obtain a diploma.
Thus it is my sincere wish that anyone that 'helps' somebody by doing their homework will end up with a "copy artist" hired as their (worthless) assistant.
Erik
Erik, I often find myself reading Per's comments with great interest. I know he did his homework by himself. But I also believe that newbies should feel at home here, knowning that they can ask questions that look trivial to you and me, but impregnable for them. don't forget: we have also been there once.
I have no problem, whatsoever helping with homework, that is not the issue, the issue is 'doing'
View all questions in Keil forum