GATE 2001
December 19, 2024GATE 2002
December 19, 2024Microprocessor
|
Question 15
|
What are the states of the Auxiliary Carry (AC) and Carry Flag (dCY) after executing the following 8085 program?
MVI H, 5DH MVI L, 6BH MOV A, H ADD L
|
AC = 0 and CY = 0
|
|
|
AC = 1 and CY = 1
|
|
|
AC = 1 and CY = 0
|
|
|
AC = 0 and CY = 1
|
Question 15 Explanation:
MOV H, 5DH
⇒ H = 0101 1101
MOV L, 6BH
⇒ L = 0110 1011
MOV A, H
A = 0101 1101
ADD L ⇒ A+L =

Here, AC=1; CY=0
⇒ H = 0101 1101
MOV L, 6BH
⇒ L = 0110 1011
MOV A, H
A = 0101 1101
ADD L ⇒ A+L =

Here, AC=1; CY=0
Correct Answer: C
Question 15 Explanation:
MOV H, 5DH
⇒ H = 0101 1101
MOV L, 6BH
⇒ L = 0110 1011
MOV A, H
A = 0101 1101
ADD L ⇒ A+L =

Here, AC=1; CY=0
⇒ H = 0101 1101
MOV L, 6BH
⇒ L = 0110 1011
MOV A, H
A = 0101 1101
ADD L ⇒ A+L =

Here, AC=1; CY=0
