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

Computer organization and architecture miscellaneous

Computer Organization and Architecture

  1. Consider the following 8085 program segment, where registers B and C contain BCD values :

    (a) For the two pairs (B = 44, C = 25) and (B = 33, C = 46) at S1,
    (i) Find the values in register A when control reaches S2.
    (ii) Find the values in registers D and E when control reaches S4.
    (b) What, in general, is the value of D and E as a function of B and C when control reaches S4.
    1. 0
    2. 1
    3. 2
    4. None of these
Correct Option: D

(a) (i) 18 H     86H
(ii) D = 00H     D = FFH
E = 19H     E 13H
(b) E = | B – C |
D = 00H     if B > C
and D = FFH     if B < C



Your comments will be displayed only after manual approval.