This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to initialize Absolute variables in code memory?

I am using Keil V7.07 C compiler. Problem Regarding Absolute Variable Initialization.

An Absolute Variable Can be defined as:

unsigned char code xyz _at_ 0xFE01;

A Normal Variable can be initialized as:

unsigned char code xyz = 76;

Is there any possibility that an absolute variable in code memory can be initialized ?? like

unsigned char code xyz _at_ 0xFE01 = 76; OR
unsigned char code xyz = 76 _at_ 0xFE01;

Above both methods are wrong. On Page 104 (C51 Users Guide), it is clearly written that Absolute Variables cannot be initialized. Is there any other way to initialize absolute variables?