Hex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baburk
    New Member
    • Oct 2006
    • 111

    #1

    Hex

    Iam two hex values 0x56f and 0xe45. I wants to join it as oxe4556f in a vaiable.
  • dtimes6
    New Member
    • Oct 2006
    • 73

    #2
    Originally posted by baburk
    Iam two hex values 0x56f and 0xe45. I wants to join it as oxe4556f in a vaiable.
    a = 0x56f;
    b = 0xe45;
    res = (b << (4*3)) +a;

    a Hex is 4 Bin
    3 Hex is 4 * 3 Bin.

    Comment

    Working...