Direction: Consider the following assembly language program for a hypothetical processor. A, B and C are 8 registers. The meanings of various instructions are shown as comments.
-
If the initial value of register A is A0, the value of register B after the program execution will be
-
- The number of 0 bit in A0
- The number of 1 bit in A0
- A0
- B
- The number of 0 bit in A0
Correct Option: B
Here value of B incremented by 1 only if carry flag is 1, carry is filled using right rotation, so B will store the no. of is in A0. Hence (b) is correct option.