9

LOGICAL OPERATIONS

CHAPTER OBJECTIVES

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.