• 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...
  • 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...
  • Typecasting and float arithmetic
    Hi. I am using the evaluation version of the Keil compiler for the 8051 microcontrollers. I need to define pointers to data of double precision and single precision IEE 754 floating point format. I need...
  • typecast uint8_t array into uint64_t variable
    I am working on STM32L432KB with Keil uVesion5 and need to write its internal flash using IAP method. For that I use below API: HAL_FLASH_Program (uint32_t TypeProgram, uint32_t Address, uint64_t...