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

transfer the value of one variable to another using bitwise (<<)

Good morning everyone Forum
I have done a lot of programming and proficient using C but this Kile compiler is new to me and very different. it is confusing me.
I have a question and need your help.
I wonder how can I rotate the left (<<) the value of variable 'A', so to rotate, bitwise be transferred to another variable 'B'.

Parents
  • No. Mostly shifts are not implemented using rotate instructions.

    But the processor shift instructions normally shift out bits into the carry flag, to allow multiple chained shifts for working with data larger than what fits in a single register.

    Just that most processors don't have any easy way to access that carry flag. Note that this thread is about ARM processors, not 8051 where the processor registers and lots of bits are directly accessible as byte or bit variables.

Reply
  • No. Mostly shifts are not implemented using rotate instructions.

    But the processor shift instructions normally shift out bits into the carry flag, to allow multiple chained shifts for working with data larger than what fits in a single register.

    Just that most processors don't have any easy way to access that carry flag. Note that this thread is about ARM processors, not 8051 where the processor registers and lots of bits are directly accessible as byte or bit variables.

Children
No data