• Accessing bytes of long data type
    I know that longs are stored MSB first in memory. I need to access individual bytes of a long in order to send them out the SPI port. There are a number of ways to do this, I'd like your opinion on which...
  • Realview: Long Long types
    I am trying to port some code over to a LPC2378 ARM-7 MCU that makes use of "long long" variables. I have not been getting any compiler errors over variables being declared as "long long" but when I...
  • issues while using unsigned long data type
    I'm curious to know if anyone has had issues using unsigned/signed long data types. In previous version of software this did not present an issue, however, when I recompile the old projects and flash...
  • long type arguments stored in registers ?
    Table in www.keil.com/.../c51_le_passingparmsinregs.htm lists registers are used to store different argument. I saw arg1 and arg2 are shared the same registers R4~R7 when they are long type. It...
  • variables with type unsigned long problem
    Dear All: When I compile the the code with the statement: The type of short_idx is unsigned short. Row1= (short_idx * 64) >> 8 >>8; If the value of short_idx is 2048, the Row1 should...