This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

bit shifting

hello there i have some problem regarding the bit shifting i want to convert the some no. from Hex. to Decimal for that i am going to used the shifting. when i recived the no. in hex format then i want to other reg. ex.when i recive 0x3d then i want to move the 3 to other location(or reg) after doing some calculation now i want move the d.with ACC >>(shifting opration is fine but in which way )please help me

Parents
  • "It is a single word or value,
    and , i tink its either hex ie, 0x3 , or decimal, 03d,
    cant be both right"

    No - that is completely wrong!

    "0x3D" is the standard 'C' notation for the hexadecimal number "3D"
    (which is 61 in decimal, and 00111101 in binary).

    In this case, 'C' is not case-sensitive - so "0x3D" is equivalent to "0x3d", "0X3D", etc

Reply
  • "It is a single word or value,
    and , i tink its either hex ie, 0x3 , or decimal, 03d,
    cant be both right"

    No - that is completely wrong!

    "0x3D" is the standard 'C' notation for the hexadecimal number "3D"
    (which is 61 in decimal, and 00111101 in binary).

    In this case, 'C' is not case-sensitive - so "0x3D" is equivalent to "0x3d", "0X3D", etc

Children