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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/05/01 11:51
Read: times


 
#12200 - RE: Keil C : read two byte?
Peter,

Use the <pre> and </pre> tags.

Here's an example, including a way to make it cope with either byte ordering:
union bw 
{ 
   uint w; 
   struct
   { 
#ifdef BIGENDIAN
      uchar h; // MSB first 
      uchar l; 
#else
      uchar l; 
      uchar h; // MSB last 
#endif
   } b; 
};



List of 18 messages in thread
TopicAuthorDate
Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      
RE: Keil C : read two byte?            01/01/70 00:00      

Back to Subject List