Can I get some info on how to initialise the Code memory and data memory 1)Unsigned char xdata temp _at_ 0x8000; 2)unsigned char code temp1_at_0x8000; In the cases mentioned above , how do i initialise 20 bytes of data conitiugously
If you really want to hack an initialisation to a fixed memory location, you could compile a file which might say:
#pragma SRC unsigned int xdata variable = 0x1234;
EXTRN XDATA(variable)
EXTRN XDATA variable
"This is for exploring different possibilitis to initialize data" If you're programming in 'C', just leave it to the compiler! "I have one question below" Sounds like a new question - so best to start a new thread with it.
Thanks for the reply Well I do not have specific reason , to initialise xdata to specfic memory location. This is for exploring different possibilitis to initialize data , a lookup table for example I have one question below What are the options to be set in the KEIL to generate the Hex code from 0000 location Thanks Regards SHASHI B R
This is a very frequent topic - just scroll back through the list, or use the 'Search' Any particular reason why you need to initialise specific locations?
You might want to look at; http://www.keil.com/forum/msgpage.asp?MsgID=4481
View all questions in Keil forum