• Efficient translate from 0x12345678 to 0x87654321
    Dear all, I met a problem due to big-endian of 8051. The phenomenon is as follows: 32-bit value A[4] is in XDATA space Ex. offset 0 = 0x12; offset 1 = 0x34; offset 2 = 0x56; offset 3 = 0x78 ...
  • Int to ASCII
    I have a uint32_t variable. I want to print its ASCII equivalent value. can anyone help me here.
  • Enums and Ints
    Bug, or just weird subtlety of ANSI C when it comes to enums and ints? typedef enum { es16_1, es16_2, es16_3, es16_Force16 = 0x7fff } EnumS16; typedef enum { eu16_1, eu16_2, eu16_3, eu16_Force16...
  • complement of Int
    is there any function that will complement the variable. e.g int i = 0xAA complement of i = 0x55
  • What's the different (xdata int) and (int xdata)
    Dear All: Could any one tell me What's the different between (xdata int p) and (int xdata p)? Thanks