Bit-reverse a byte on 68HC12

前端 未结 9 1696
挽巷
挽巷 2021-01-18 02:03

I\'m in a microprocessors class and we are using assembly language in Freescale CodeWarrior to program a 68HCS12 micro controller. Our assignment this week is to revers a by

9条回答
  •  Happy的楠姐
    2021-01-18 02:58

    When you do a right shift, what was the least significant bit goes into the carry flag.

    When you do a rotate, the carry flag is used to fill in the vacated bit of the result (LSB for a ROL, MSB for a ROR).

提交回复
热议问题