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 ...
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.