edited by
28 views
1 votes
1 votes

An $8085$ assembly language program is given below.

Line 1: MVI A, B5H
     2: MVI B, 0EH
     3: XRI 69H
     4: ADD B
     5: ANI 9BH
     6: CPI 9FH
     7: STA 3010H
     8: HLT

 After execution of line $7$ of the program, the status of the $\text{CY}$ and $\mathrm{Z}$ flags will be

  1. $\mathrm{CY}=0, \mathrm{Z}=0$
  2. $\text{CY=0, Z=1}$
  3. $\mathrm{CY}=1, \mathrm{Z}=0$
  4. $\mathrm{CY}=1, \mathrm{Z}=1$
edited by

Please log in or register to answer this question.