??? 06/16/05 15:48 Read: times Msg Score: -1 -1 Answer is Wrong |
#95109 - Why so complicated? Responding to: ???'s previous message |
Scott P. Dolan said:
In order to access the array store in code space only knowing the address you can use the below code If all you want to do is read it, then just say unsigned char const serial_num[4] _at_ 0xFFE0;and just access it as a perfectly normal 'C' array... http://www.keil.com/support/m...varloc.htm |
Topic | Author | Date |
Const Array Store at a Specific Address | 01/01/70 00:00 | |
Initializing constant location. | 01/01/70 00:00 | |
KEIL uVision 2 C51 6.10 | 01/01/70 00:00 | |
No Linker? | 01/01/70 00:00 | |
Linking Mike | 01/01/70 00:00 | |
Linker's Job | 01/01/70 00:00 | |
Cannot you use something like.... | 01/01/70 00:00 | |
in fact | 01/01/70 00:00 | |
Keil | 01/01/70 00:00 | |
seems it cannot be done in C with Keil | 01/01/70 00:00 | |
Done in 'C' with Keil | 01/01/70 00:00 | |
Linker job | 01/01/70 00:00 | |
Linker's Job | 01/01/70 00:00 | |
Intel Hex | 01/01/70 00:00 | |
Accessing Code Arrarys | 01/01/70 00:00 | |
Why so complicated? | 01/01/70 00:00 | |
Memory space | 01/01/70 00:00 | |
Oops! | 01/01/70 00:00 | |
No can do | 01/01/70 00:00 | |
To Steve/Craig | 01/01/70 00:00 | |
Punisment? | 01/01/70 00:00 | |
I'll just nip nack to last week and... | 01/01/70 00:00 | |
Some would | 01/01/70 00:00 | |
I have the impression that | 01/01/70 00:00 | |
a small problem with this that many have | 01/01/70 00:00 | |
using constant | 01/01/70 00:00 | |
const![]() | 01/01/70 00:00 |