Apart from arithmetical operations, which we have discussed in Chapter 5, logical operations play an important role in data processing in many cases. In this chapter, the reader is introduced to the related instructions for logical operations offered in MCS-51. After going through the chapter, the reader should be able to understand

  • Addressing modes and syntax of instructions used in logical operations.
  • Applications of these instructions in different problem-solving software routines.

9.1 | Introduction

Before we start our discussions on logical operations possible with MCS-51, the reader may be reminded that MCS-51 is capable of performing logical operation with both byte and bit variables. Operations ...

Get 8051 Microcontrollers, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.