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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/27/08 18:05
Read: times


 
#152625 - Thanks
Responding to: ???'s previous message
Thanks Frieder and Erik. I wrote my code as follows:




unsigned char b0 = 0xff;
unsigned char b1 = 0x07;
unsigned char b2 = 0xc1;
volatile char e;


void main()
{
unsigned long a = 0;  /* just to have something */
a+=b2;
a<<=8;
a+=b1;
a<<=8;
a+=b0;


   if (a < 0xcb49C6) 
      e++;
	  else
	  e--;
}


List of 7 messages in thread
TopicAuthorDate
24 bit number comparison in a 8 bit mc            01/01/70 00:00      
   assembler or C            01/01/70 00:00      
   How about this? (union, C-compiler, assembler)            01/01/70 00:00      
      helpful!            01/01/70 00:00      
         OT: shifting 32 bit            01/01/70 00:00      
            re: OT: shifting 32 bit            01/01/70 00:00      
   Thanks            01/01/70 00:00      

Back to Subject List