Search:

Type: Posts; User: yu_raider

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,830

    It works now. Many thanks to all!

    It works now.
    Many thanks to all!
  2. Replies
    5
    Views
    2,830

    Thank you for your answer, Phillip! ...

    Thank you for your answer, Phillip!

    Unfortunately I'm having some tough luck extracting the digits:


    part = mask&opCode;
    opCode <<= 4;
    part >>= 12;
    printf("%x\n", part); // This outputs...
  3. Replies
    5
    Views
    2,830

    Bit operations?

    Hello, I have the following variable:


    short opCode = 0x22a2;


    I would like to shift the order of the digits so that I get 0xa222.
    I would also like to separate each individual hex digit and...
Results 1 to 3 of 3