How to access data stored in ROM in Keil C51 ?

Status
Not open for further replies.

milan.rajik

Banned
Joined
Apr 1, 2013
Messages
2,524
Helped
540
Reputation
1,078
Reaction score
524
Trophy points
1,393
Activity points
0
How to access data stored in ROM in Keil C51 ?

I have an array like
Code:
unsigned int code myarray[2] = {25, 350};
in Keil C51 code. I want to know how to access this array in code for processing ?
 

The "code" storage class specifier is allocating the data objects in code memory. You access by simple C assignments, that's the adavntage of a C compiler. Specific restrictions have to be considered for access through pointers. Just review the Keil manual.
 

Thank you FvM. I will have a look at the manuals.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…