Advertisements
Advertisements
Question
Zero flag is not affected in ______ instruction.
Options
XRA A
SUB A
CMP A
MVI A, OOH
MCQ
Fill in the Blanks
Advertisements
Solution
Zero flag is not affected in MVI A, OOH instruction.
Explanation:
MVI A, 00H is a data transfer instruction, and data transfer instructions do not affect any flags in the flag register.
On the other hand, XRA A, SUB A, and CMP A are arithmetic/logical instructions, and they modify the Zero flag based on the result.
shaalaa.com
Is there an error in this question or solution?
2022-2023 (March) Official
