8051 INSTRUCTION SET ADDRESSING MODES
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
CPL
|
|
CMP
|
|
CLR
|
|
CLC
|
Detailed explanation-1: -In 8051 Microcontroller there is 25 different instructions under the Logical Group. In total there are 49 opcodes. The Carry Flag (CY) affects only by instruction RRC and RLC. In the following table, we will see the Mnemonics, Lengths, Execution Time in terms of the machine cycle, Number of Opcodes etc.
Detailed explanation-2: -Explanation: The logical instructions that doesn’t affect the carry flag are, ANL, ORL and XRL. The logical instructions that affect the carry flag during its execution are RL, RLC, RRC and RR.
Detailed explanation-3: -In C, there is two types of Boolean operations, logical and bitwise. In the logical version, the entire expression will result in the value of zero or non-zero (false or true). In the bitwise operations, the bits in the same position will be combines separately, giving a zero or non-zero result.