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.
Which of these set the address 0x0FFE000 to be equal to zero. 1) const int far zero _at_ 0x0FFE000 = 0; 2) const int far zero _at_ 0x0FFE000 = "0"; 3) const int far zero _at_ 0x0FFE000 = '0'; If none of the above is the correct way, can anyone tell me how can i go about setting the address 0x0FFE000 to be at low(meaning zero) at all time.. Thanks...
None of the above - they are all invalid. See the syntax for _at_ in your C251 manual - it can't be used with initialisation! You will either need to use the Linker to put it at the required location, or do it in assembler. Search beack through this forum - it's been discussed a number of times in the not-too-distant past.
Hi, Can you give me an example.. I tried seaching for one,but can find any in this forum. Thanks
Hmm... the search refuses to accept "_at_" as a keyword - doh! SO I tried a search on "Linker", and the following threads look hopeful: * Link objects to a specific map * How write constant data in code memory?? * locating the final destination of ob... * Declare an initialized array at an a...