Can anybody tell me how constants are stored in a 8051 application. If it is prom- able to write it to the PROM and how it will be accessed during program execution? thanks. regards, san
// Goes in RAM, not ROM. const unsigned char tens[] = { 1, 10, 100, 1000, 10000, 100000 };
const unsigned char code tens[] = { ... };
static const unsigned char code tens[] = { ... };