Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/16/02 15:06
Read: times


 
#34541 - RE: SDDC: Code var must have initialiser
If you want to read bytes from you code space try this:

(Keil syntax:)
unsigned char code *fred=(unsigned char code *)0;

Then you can read data from code space using array indexing:

unsigned char byte1,byte2;

byte1=fred[0];
byte2=fred[1]; //etc

If you want to make it unnecessarily confusing you could use pointer arithmetic instead.

List of 7 messages in thread
TopicAuthorDate
SDDC: Code var must have initialiser            01/01/70 00:00      
RE: SDDC: Code var must have initialiser            01/01/70 00:00      
RE: SDDC: Code var must have initialiser            01/01/70 00:00      
RE: SDDC: Code var must have initialiser            01/01/70 00:00      
RE: SDDC: Code var..., Donald            01/01/70 00:00      
RE: SDDC: Code var..., Donald 2            01/01/70 00:00      
RE: SDDC: Code var..., Donald 2            01/01/70 00:00      

Back to Subject List