O'Reilly logo

8051 Microcontrollers, 2nd Edition by Subrata Ghoshal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6

PROGRAM BRANCHING

CHAPTER OBJECTIVES

Controlling the flow of the program is one of the important aspects of program development. This is achieved by conditional and unconditional branching instructions, which are discussed in this chapter. After completion of the chapter, the reader should be able to understand

  • Limitation of different types of unconditional jump instructions.
  • Different types of conditional branching instructions.
  • How to control the program flow using instructions like JZ, CJNE and DJNZ.

6.1 | Program Branching Instructions

Program branching plays a very important role in software development. In Chapter 1, we have introduced a microcontroller as a device with the duty of continuously fetching and executing instructions (refer ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required