Search:

Type: Posts; User: n00bcodezor

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    14,358

    thanks for that..works perfectly.

    thanks for that..works perfectly.
  2. Replies
    2
    Views
    14,358

    circular shift

    ok, im trying to write a function that does a "circular shift" i.e: left shifts "a" by "n" positions, where high order bits are introduced as low order bits.

    eg:

    10000001 circular shift 1...
  3. thanks for that explanation sayeh, i understand...

    thanks for that explanation sayeh, i understand it all now.
  4. thanks for that ozgulker. works like a charm

    thanks for that ozgulker.

    works like a charm
  5. ok here is my modification of his code (but it...

    ok here is my modification of his code (but it still doesnt work :D)

    anyone care to debug it for me?

    #include <stdio.h>

    int main()
    {
    unsigned long newlong;
    unsigned long...
  6. sayeh, what exactly do the lines scratch

    sayeh, what exactly do the lines

    scratch <<= ((7-i)*4);

    newlong &= scratch;

    do in the code you wrote in your reply?
  7. how to pack 8 x 4 bit binary numbers into a long int?

    How do I pack 8 4-bit binary numbers into a long int?
    The program is to take an input string of 8 ascii charcaters, (digits 0 to 9 only), convert them to their 4 bit binary equivilants and pack them...
Results 1 to 7 of 7