??? 07/11/07 09:32 Read: times |
#141728 - It should be documented! Responding to: ???'s previous message |
John Hu said:
so how do I check if the original owner has used either one of the two you mentioned? It should be documented - see my post A lesson to learn about Commenting in http://www.keil.com/forum/docs/thread10183.asp I said:
From this, the lesson to learn is the importance of Commenting your code to clearly explain the reason(s) why you do what you do! If it's not documented, your only choice is to go through all the code, and look at all the schematics, and try to work it out! :-( However, in your case, all of the _at_ definitions (at least, all of the ones that you showed) are in DATA or IDATA. http://www.keil.com/forum/docs/thread10183.asp Think about it: neither DATA nor IDATA can possibly be used for either of the things that I mentioned, can they? http://www.8052.com/forum/read.phtml?id=141714 (unless you're using some "soft" core that allows it...) for exam if he declared a name variable at _at_ 0x68
I search the rest of the code for 0x68 it doesn't show up. Of course it doesn't: the rest of the code will use only the name, not the address - that's the whole point of names! Does that mean he just declare it but didn't use it? No - see above. |
Topic | Author | Date |
data declaration problem | 01/01/70 00:00 | |
Look at the Map file! | 01/01/70 00:00 | |
hmm... how? | 01/01/70 00:00 | |
Think about it - nothing weird! | 01/01/70 00:00 | |
So why did they do that? | 01/01/70 00:00 | |
thanks andy~ | 01/01/70 00:00 | |
advice on the usage of absolute addresses | 01/01/70 00:00 | |
so how do i check? | 01/01/70 00:00 | |
It should be documented! | 01/01/70 00:00 | |
i see | 01/01/70 00:00 | |
incomplete | 01/01/70 00:00 | |
Pay attention! | 01/01/70 00:00 | |
to what? | 01/01/70 00:00 | |
Jojo's back | 01/01/70 00:00 | |
please read the content in that link | 01/01/70 00:00 | |
gaps | 01/01/70 00:00 | |
ya... | 01/01/70 00:00 | |
read my post above ... | 01/01/70 00:00 | |
I got it now | 01/01/70 00:00 | |
How to make a gap![]() | 01/01/70 00:00 | |
Not a declaration problem! | 01/01/70 00:00 |