0% found this document useful (0 votes)
61 views

Branch Operations

The document discusses branch operations in a microprocessor. It explains that branch instructions allow a program to change sequence by jumping to a different memory location. There are three types of branch instructions: jump instructions, call and return instructions, and restart instructions. Jump instructions explicitly specify the memory location and are divided into unconditional jumps and conditional jumps. One example is the unconditional jump instruction, which is a 3-byte instruction that allows programmers to set up continuous loops by jumping to a specified memory address.

Uploaded by

Ameer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

Branch Operations

The document discusses branch operations in a microprocessor. It explains that branch instructions allow a program to change sequence by jumping to a different memory location. There are three types of branch instructions: jump instructions, call and return instructions, and restart instructions. Jump instructions explicitly specify the memory location and are divided into unconditional jumps and conditional jumps. One example is the unconditional jump instruction, which is a 3-byte instruction that allows programmers to set up continuous loops by jumping to a specified memory address.

Uploaded by

Ameer Hamza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

204 PROGRAMMING THE 8085

5.The logic operations cannot be performed directly with the contents of two registers.
6.The individual bits in the accumulator can be set or reset using logic instructions.

See Questions and Programming Assignments 20-29 at the end of this chapter.

6.4 BRANCH OPERATIONS

The branch instructions are the most powerful instructions because they allow the mi-
croprocessor to change the sequence of a program, either unconditionally or under certain
test conditions. These instructions are the key to the flexibility and versatility of a com-
puter.
The microprocessor is a sequential machine; it executes machine codes from one
memory location to the next. Branch instructions instruct the microprocessor to go to a
different memory location, and the microprocessor continues executing machine codes
from that new location. The address of the new memory location is either specified ex-
plicitly or supplied by the microprocessor or by extra hardware. The branch instructions
are classified in three categories:

1.Jump instructions
2.Call and Return instructions
3.Restart instructions

This section is concerned with applications of Jump instructions. The Call and
Return instructions are associated with the subroutine technique and will be discussed in
Chapter 9; Restart instructions are associated with the interrupt technique and will be dis-
cussed in Chapter 12.
The Jump instructions specify the memory location explicitly. They are 3-byte in-
structions: one byte for the operation code, followed by a 16-bit memory address. Jump
instructions are classified into two categories: Unconditional Jump and Conditional Jump.

6.4. 1 Unconditional Jump


The 8085 instruction set includes one unconditional Jump instruction. The unconditional
Jump instruction enables the programmer to set up continuous loops.

INSTRUCTION

Opcode Operand Description


.11\41) 16-bit Jump
1:1 This is a 3-byte instruction
❑The second and third bytes specify the 16-bit memory
address. However, the second byte
specifies the low-order and the third byte spec-
ifies the high-order memory address

You might also like