• long data types
    Hi all, Can anyone help me with the following problem? I'm writing a long data to a long variable but instead of passing 4 Bytes it pass 3 Bytes. I'm using C51 v6.22. long var = 0xBD3C00BD; -> var...
  • long data types
    Hi all, Can anyone help me with the following problem? I'm writing a long data to a long variable but instead of passing 4 Bytes it pass 3 Bytes. I'm using C51 v6.22. long var = 0xBD3C00BD; -> var...
  • 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...
  • 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...