| ??? 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--;
}
|
| Topic | Author | Date |
| 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 |



