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.
Hi, I would like to preset a byte at a specific adress in the code memory with a specific value. code char BYTE=0x55; //works, but adress not specified code char BYTE _at_ 0xF000; //works, but value not specified code char BYTE=0x55 _at_ 0xF000; //leads to Sytanx Error How do I tell the Compiler to preset the byte in the code memory? Thanks, Lutz
Thank you very much for the answer. I wonder that the Keil-Compiler has so much problems in combinig the _at_ directive and initialization. I think it's a pretty complicate way to make the compiler generate assembler-code like: cseg org 0F000H foo: DB 0EEH END Funny: Keil's low-cost competitor 'Raisonance' allows such a syntax: at 0xF000 code const char foo=0xEE; and it works pretty fine. Lutz