We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How to define the following constant to an absolute address at 0x1000?
unsigned char code index[] = { 0x3, 0x5, 0x6 } ; //a constant mem in a file
Thanks for the hints. I know how to set an absolute address to a subroutine, a segment, or a variable. But for this constant ARRAY of CODE type, I just cannot make it work. Could any one give me an detailed example?
"I know how to set an absolute address to a subroutine, a segment, or a variable." Excellent! Not much of a stretch for you then. "But for this constant ARRAY of CODE type, I just cannot make it work." OK. Show us your examples, so we know what you are working from. "Could any one give me an detailed example?" Well, you have not told us which approach you are taking. For example, if you are going the assembler route an using its absolute addressing facility, I would thing if you merely took a look at the template.a51 (already mentioned), the c51/examples/asm/*.a51 files, c51/lib/init.a51, and start900.a51 to name a few, you would have some nice examples.