INTRODUCTION TO MICROPEOCESSOR
MICRO PROCESSOR AND MICRO CONTROLLER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
AC flag
|
|
Z flag
|
|
P flag
|
|
C flag
|
Detailed explanation-1: -Explanation: Flag register is not used in opcode fetch operations.
Detailed explanation-2: -AC: Auxiliary Carry Flag is set when there is a carry out of lower nibble or lower four bits of the operation. This type of flag is basically used in the BCD (Binary Coded Decimal) number system (0-9). This is the only flag register which is not used or accessed by the programmer.
Detailed explanation-3: -Zero flag (ZF)-the zero flag is set(1) when the result of an arithmetic operation is zero. Sign flag (SF)-the sign flag is set(1) when the result of an arithmetic operation has a 1 in the most significant bit (msb).
Detailed explanation-4: -A flag is one or more data bits used to store binary values as specific program structure indicators. A flag is a component of a programming languageās data structure.