MICROPROCESSOR AND MICROCONTROLLER

8051 INSTRUCTION SET ADDRESSING MODES

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The instruction in 8051 that performs logical NOT operation is
A
CPL
B
CMP
C
CLR
D
CLC
Explanation: 

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.

There is 1 question to complete.