Microprocessors and Microcontrollers: Unit III: (b) 8051 Instruction Set and Programming

Byte Level Logical Instructions

8051 Instruction Set and Programming

Review Questions : 1. What is the operation of the given 8051 microcontroller instructions : XRL A, direct? 2. Explain the instruction set of 8051 microcontroller.

Byte Level Logical Instructions

• The instructions ANL, ORL, and XRL perform the logical functions AND, OR, and/or Exclusive-OR on the two byte variables indicated, leaving the results in the first. No flags are affected.

• The byte-level logical operations use all four addressing modes for the source of a data byte. Here, directly addressed bytes may be used as the destination with either the accumulator or a constant as the source. These instructions are useful for clearing (ANL), setting (ORL) or complementing (XRL) one or more bits in a RAM, output ports, or control registers.

• This is illustrated in following figures.


• Table 15.4.1 gives the list of byte level logical operations.


Review Questions

1. What is the operation of the given 8051 microcontroller instructions : XRL A, direct?

AU : May-11, Marks 2

2. Explain the instruction set of 8051 microcontroller.   

AU : May-10, Marks 10

Microprocessors and Microcontrollers: Unit III: (b) 8051 Instruction Set and Programming : Tag: : 8051 Instruction Set and Programming - Byte Level Logical Instructions