Home » Computer Organization and Architecture » Computer organization and architecture miscellaneous » Question

Computer organization and architecture miscellaneous

Computer Organization and Architecture

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.

  1. If the initial value of register A is A0, the value of register B after the program execution will be
    1. The number of 0 bit in A0
    2. The number of 1 bit in A0
    3. A0
    4. B
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.



Your comments will be displayed only after manual approval.