• typecast
    To the best of my knowledge the 'if' below should test 2 bytes. What is wrong here void funct(unsigned char *valptr) { if (((unsigned int)*valptr) != 0) generates 0012 8F82 MOV DPL,R7 0014 8E83...
  • __packed typecast
    Hello all, Previously i was using MDKARM 4.0 and now i've upgraded to the 4.7. I am writing the program for LPC17xx. In the previous version i was using unsigned long long data type for 64 bit data...
  • Floating Point Arithmetic Bug?
    I am experiencing unexpected results when performing floating point arithmetic. void main( void ) { long raw_value; float scaling_factor = 0.0762951; float scaling_offset = -1000; float result; ...
  • Typecasting pointer to a bit field
    Hi, Is it possible to typecast a pointer to a variable in xdata to a bit field with 13-bits? I've tried this, char xdata i _at_ 0x300; struct { unsigned short addr : 13; unsigned char flag1...
  • typecast arm problem
    Note: This was originally posted on 29th July 2009 at http://forums.arm.com Hi I use eclipse+yagarto+the exemple getting-started-project-1.3-at91sam7x-ek or RTOS "ARM7_AT91SAM7X256_Eclipse". I have a...