10

BOOLEAN VARIABLE MANIPULATION

CHAPTER OBJECTIVES

In the previous chapter, it was mentioned that apart from manipulating byte variables, MCS-51 can also manipulate bit variables. This chapter discusses the instructions dealing with Boolean variable manipulation. After completion of the chapter, the reader should be able to understand

  • Instructions related with Boolean data-load and data-move operations.
  • Program-branching instructions related to Boolean variables.
  • Logical operations possible with Boolean variables.
  • Application areas of some of these instructions.

10.1 | Introduction

All the instructions we have discussed so far are related to byte variables. However, MCS-51 also offers a bunch of instructions, which are capable of manipulating ...

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.