INTRODUCTION TO MICROPEOCESSOR
MICROPROCESSOR TERMINOLOGY
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
If the flag register contains 05H then Parity flag and Zero flag bit is ____
|
PF=1 and ZF=1
|
|
PF=1 and ZF=0
|
|
PF=0 and ZF=1
|
|
PF=0 and ZF=0
|
Explanation:
Detailed explanation-1: -Zero flag (Z): The Z flag is set to 1, if after arithmetic and logical operations, the 8-bit result thus produced, is 00H. If the 8-bit result is not equal to 00H, the Z flag is reset to 0. Thus the Z flag is hoisted to indicate that the result is 0.
Detailed explanation-2: -The flag register is one of the special purpose register. The flag bits are changed to 0 or 1 depending upon the value of result after arithmetic or logical operations. 8086 has 16-bit flag register, and there are 9 valid flag bits. The format of flag register is like below.
There is 1 question to complete.