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