-
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.
-
- 0
- 1
- 2
- 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