Well, we've just had another question about initialising constant data defined with _at http://www.keil.com/forum/docs/thread1162.asp This is a very frequently-asked question, which begs the further question, "why can't symbols defined with _at_ be initialised??" After all, there's obviously a lot of people out there wanting to do it. I gather that the Raisonance compiler does allow this. http://www.8052.com/forum/read.phtml?id=13182&top=
"I think your question is of no importance." Take a look back through the last year's posts - you'll see that it's been asked at least half a dozen times. I think it was important to them, and to all the others who worked it out for themselves without ever asking on this forum. "Is it really that difficult to initialize whatever you want at the start of your program?" It is if you want your constants in CODE!! But why should you have to do this, when the Compiler handles all other initialisations automatically!?
Excuse me, I couldn't imagine it was so hard for you to have an initializing block in your code. Probably, a little practice will help. M.
An unusual way of intruducing yourself :-)) That's why I try to think twice before posting messages.
I obviously wasn't clear when I said, "...if you want your constants in CODE!!" What I meant was that your suggestion cannot be used if the initialisations are required in the 8051's CODE memory space - because there is no instruction to write to CODE space! (it's normally ROM)