SlideShare a Scribd company logo
GOVERNMENT ENGINEERING
COLLEGE GANDHINAGAR
SUB:- Microprocessor and Interfacing (2140304)
TOPIC:- 8085:branching & logical instruction
BY,
NEMISH V. BHOJANI 150130103017
BODAR BHAVIN A. 150130103018
DEVAL PURAN 150130103019
BIOMEDICAL DEPARTMENT
18085:branching & logical instruction
28085:branching & logical instruction
8085:branching instruction
8085:branching & logical instruction 3
8085:branching instruction
Unconditional Branch Instructions :
In Unconditional control transfer instructions, the
execution control is transferred to the specified
location independent of any status or condition.
The CS and IP are unconditionally modified to the
new CS and IP.
8085:branching & logical instruction 4
8085:branching instruction
CALL : Unconditional Call
This instruction is used to call a Subroutine (Procedure) from a main
program. Address of procedure may be specified directly or indirectly.
There are two types of procedure depending upon whether it is
available in the same segment or in another segment.
1> Near CALL
i.e., ±32K displacement.
2> For CALL
i.e., anywhere outside the segment.
On execution this instruction stores the incremented IP & CS onto the
stack and loads the CS & IP registers with segment and offset
addresses of the procedure to be called.
8085:branching & logical instruction 5
8085:branching instruction
RET: Return from the Procedure.
At the end of the procedure, the RET instruction must be
executed. When it is executed, the previously stored
content of IP and CS along with Flags are retrieved into the
CS, IP and Flag registers from the stack and execution of
the main program continues further.
8085:branching & logical instruction 6
8085:branching instruction
JMP: Unconditional Jump
This instruction unconditionally transfers the
control of execution to the specified address
using an 8-bit or 16-bit displacement. No Flags
are affected by this instruction.
8085:branching & logical instruction 7
8085:branching instruction
IRET: Return from ISR
When it is executed, the values of IP, CS and Flags
are retrieved from the stack to continue the
execution of the main program.
8085:branching & logical instruction 8
8085:branching instruction
LOOP : LOOP Unconditionally
This instruction executes the part of the program
from the Label or address specified in the instruction
upto the LOOP instruction CX number of times. At
each iteration, CX is decremented automatically and
JUMP IF NOT ZERO structure.
Example: MOV CX, 0004H
MOV BX, 7526H
Label 1 MOV AX, CODE
OR BX, AX
LOOP Label 1
8085:branching & logical instruction 9
8085:branching instruction
Conditional Branch Instructions :
When this instruction is executed, execution control is
transferred to the address specified relatively in the
instruction, provided the condition implicit in the Opcode is
satisfied. Otherwise execution continues sequentially.
10
8085:branching instruction
Jx
8085:branching & logical instruction 11
8085:logical instruction
8085:branching & logical instruction 12
8085:logical instruction
• PSW (Program Status word)
• - Flag unaffected
• * affected
• 0 reset
• 1 set
• S Sign (Bit 7)
• Z Zero (Bit 6)
• AC Auxiliary Carry (Bit 4)
• P Parity (Bit 2)
• CY Carry (Bit 0)
8085:branching & logical instruction 13
8085:logical instruction
8085:branching & logical instruction 14
8085:logical instruction
8085:branching & logical instruction 15
8085:logical instruction
8085:branching & logical instruction 16
8085:logical instruction
8085:branching & logical instruction 17
8085:logical instruction
8085:branching & logical instruction 18
8085:logical instruction
8085:branching & logical instruction 19
8085:logical instruction
8085:branching & logical instruction 20
8085:logical instruction
8085:branching & logical instruction 21
8085:logical instruction
8085:branching & logical instruction 22
8085:logical instruction
8085:branching & logical instruction 23
8085:logical instruction
8085:branching & logical instruction 24
8085:logical instruction
8085:branching & logical instruction 25
8085:logical instruction
8085:branching & logical instruction 26
8085:logical instruction
8085:branching & logical instruction 27
8085:logical instruction
8085:branching & logical instruction 28
8085:logical instruction
8085:branching & logical instruction 29
8085:logical instruction
8085:branching & logical instruction 30
8085:logical instruction
8085:branching & logical instruction 31
8085:logical instruction
8085:branching & logical instruction 32
8085:logical instruction
8085:branching & logical instruction 33

More Related Content

PPT
pin-diagram-details-of-8086-microprocessor
PDF
Fsm sequence detector
PPTX
MicroProgrammed Explained .
PPT
Arithmetic & logical operations in 8051
PDF
Digital Electronics- Number systems & codes
PPT
Logical instruction of 8085
PPTX
Dlc{binary to gray code conversion} ppt
pin-diagram-details-of-8086-microprocessor
Fsm sequence detector
MicroProgrammed Explained .
Arithmetic & logical operations in 8051
Digital Electronics- Number systems & codes
Logical instruction of 8085
Dlc{binary to gray code conversion} ppt

What's hot (20)

PPTX
Interfacing technique with 8085- ADC[0808]
PPTX
06 floating point
PPTX
Instruction Set of 8051 Microcontroller
PPTX
Addressing modes of 8086
PPTX
Microprocessor 8086
PPT
Programming 8051 Timers
PPT
Binary codes
PDF
8085 branching instruction
PPT
The Intel 8086 microprocessor
PDF
Unit III ARM Interface and ARM Programming
PPTX
Error Detection and Correction presentation
PPTX
timing_diagram_of_8085.pptx
PPT
Chapter 2 The 8088 Microprocessor
PPTX
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
PPTX
Segment registers
PDF
8086 architecture and pin description
PPT
Assembly language programming_fundamentals 8086
PPTX
Minimum mode and Maximum mode Configuration in 8086
PPTX
8051 Assembly Language Programming
Interfacing technique with 8085- ADC[0808]
06 floating point
Instruction Set of 8051 Microcontroller
Addressing modes of 8086
Microprocessor 8086
Programming 8051 Timers
Binary codes
8085 branching instruction
The Intel 8086 microprocessor
Unit III ARM Interface and ARM Programming
Error Detection and Correction presentation
timing_diagram_of_8085.pptx
Chapter 2 The 8088 Microprocessor
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
Segment registers
8086 architecture and pin description
Assembly language programming_fundamentals 8086
Minimum mode and Maximum mode Configuration in 8086
8051 Assembly Language Programming
Ad

Similar to 8085:branching and logical instruction (20)

PPTX
Branching instructions in 8086 microprocessor
PPTX
microprocessor ppt (branching and logical instructions)
PPTX
Instruction set of 8086
PDF
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
PPTX
8086 instruction set
PPTX
Microprocessors-based systems (under graduate course) Lecture 6 of 9
PDF
BISWAJIT ADHIKARI_28101623024_PC EE 602.pdf
PPT
8086 microprocessor assembler directives.ppt
PPT
Mc05.ppt
PDF
MPMC UNIT-2.pdf
PPT
Unit2 control unit
PPT
MicroprocessorLecture_2_eightbit_microprocessor.ppt
PPTX
Instruction set
PPTX
Embedded System_8051_Microcontroller_Basics
PPT
8085-instruction-set.ppt
PPT
Unit 2 8085 instruction set ppt
PPTX
Instructionsetof8086 by Alwani
PPTX
9. 8085 instruction set v
PDF
8085_MicroelectronicAndMicroprocess.pdf
Branching instructions in 8086 microprocessor
microprocessor ppt (branching and logical instructions)
Instruction set of 8086
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
8086 instruction set
Microprocessors-based systems (under graduate course) Lecture 6 of 9
BISWAJIT ADHIKARI_28101623024_PC EE 602.pdf
8086 microprocessor assembler directives.ppt
Mc05.ppt
MPMC UNIT-2.pdf
Unit2 control unit
MicroprocessorLecture_2_eightbit_microprocessor.ppt
Instruction set
Embedded System_8051_Microcontroller_Basics
8085-instruction-set.ppt
Unit 2 8085 instruction set ppt
Instructionsetof8086 by Alwani
9. 8085 instruction set v
8085_MicroelectronicAndMicroprocess.pdf
Ad

Recently uploaded (20)

PPTX
material for studying about lift elevators escalation
PPTX
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
PPTX
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
PPTX
quadraticequations-111211090004-phpapp02.pptx
PPT
Lines and angles cbse class 9 math chemistry
PDF
-DIGITAL-INDIA.pdf one of the most prominent
PPTX
A Clear View_ Interpreting Scope Numbers and Features
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PPTX
PROGRAMMING-QUARTER-2-PYTHON.pptxnsnsndn
PPTX
Embeded System for Artificial intelligence 2.pptx
PPTX
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
PDF
Dynamic Checkweighers and Automatic Weighing Machine Solutions
PPTX
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
PPTX
Lecture-3-Computer-programming for BS InfoTech
PPTX
"Fundamentals of Digital Image Processing: A Visual Approach"
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PPTX
Fundamentals of Computer.pptx Computer BSC
PDF
Dozuki_Solution-hardware minimalization.
PPTX
Embedded for Artificial Intelligence 1.pptx
PPT
Hypersensitivity Namisha1111111111-WPS.ppt
material for studying about lift elevators escalation
Sem-8 project ppt fortvfvmat uyyjhuj.pptx
Lecture 3b C Library _ ESP32.pptxjfjfjffkkfkfk
quadraticequations-111211090004-phpapp02.pptx
Lines and angles cbse class 9 math chemistry
-DIGITAL-INDIA.pdf one of the most prominent
A Clear View_ Interpreting Scope Numbers and Features
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PROGRAMMING-QUARTER-2-PYTHON.pptxnsnsndn
Embeded System for Artificial intelligence 2.pptx
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
Dynamic Checkweighers and Automatic Weighing Machine Solutions
DEATH AUDIT MAY 2025.pptxurjrjejektjtjyjjy
Lecture-3-Computer-programming for BS InfoTech
"Fundamentals of Digital Image Processing: A Visual Approach"
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
Fundamentals of Computer.pptx Computer BSC
Dozuki_Solution-hardware minimalization.
Embedded for Artificial Intelligence 1.pptx
Hypersensitivity Namisha1111111111-WPS.ppt

8085:branching and logical instruction

  • 1. GOVERNMENT ENGINEERING COLLEGE GANDHINAGAR SUB:- Microprocessor and Interfacing (2140304) TOPIC:- 8085:branching & logical instruction BY, NEMISH V. BHOJANI 150130103017 BODAR BHAVIN A. 150130103018 DEVAL PURAN 150130103019 BIOMEDICAL DEPARTMENT 18085:branching & logical instruction
  • 2. 28085:branching & logical instruction 8085:branching instruction
  • 3. 8085:branching & logical instruction 3 8085:branching instruction Unconditional Branch Instructions : In Unconditional control transfer instructions, the execution control is transferred to the specified location independent of any status or condition. The CS and IP are unconditionally modified to the new CS and IP.
  • 4. 8085:branching & logical instruction 4 8085:branching instruction CALL : Unconditional Call This instruction is used to call a Subroutine (Procedure) from a main program. Address of procedure may be specified directly or indirectly. There are two types of procedure depending upon whether it is available in the same segment or in another segment. 1> Near CALL i.e., ±32K displacement. 2> For CALL i.e., anywhere outside the segment. On execution this instruction stores the incremented IP & CS onto the stack and loads the CS & IP registers with segment and offset addresses of the procedure to be called.
  • 5. 8085:branching & logical instruction 5 8085:branching instruction RET: Return from the Procedure. At the end of the procedure, the RET instruction must be executed. When it is executed, the previously stored content of IP and CS along with Flags are retrieved into the CS, IP and Flag registers from the stack and execution of the main program continues further.
  • 6. 8085:branching & logical instruction 6 8085:branching instruction JMP: Unconditional Jump This instruction unconditionally transfers the control of execution to the specified address using an 8-bit or 16-bit displacement. No Flags are affected by this instruction.
  • 7. 8085:branching & logical instruction 7 8085:branching instruction IRET: Return from ISR When it is executed, the values of IP, CS and Flags are retrieved from the stack to continue the execution of the main program.
  • 8. 8085:branching & logical instruction 8 8085:branching instruction LOOP : LOOP Unconditionally This instruction executes the part of the program from the Label or address specified in the instruction upto the LOOP instruction CX number of times. At each iteration, CX is decremented automatically and JUMP IF NOT ZERO structure. Example: MOV CX, 0004H MOV BX, 7526H Label 1 MOV AX, CODE OR BX, AX LOOP Label 1
  • 9. 8085:branching & logical instruction 9 8085:branching instruction Conditional Branch Instructions : When this instruction is executed, execution control is transferred to the address specified relatively in the instruction, provided the condition implicit in the Opcode is satisfied. Otherwise execution continues sequentially.
  • 11. 8085:branching & logical instruction 11 8085:logical instruction
  • 12. 8085:branching & logical instruction 12 8085:logical instruction • PSW (Program Status word) • - Flag unaffected • * affected • 0 reset • 1 set • S Sign (Bit 7) • Z Zero (Bit 6) • AC Auxiliary Carry (Bit 4) • P Parity (Bit 2) • CY Carry (Bit 0)
  • 13. 8085:branching & logical instruction 13 8085:logical instruction
  • 14. 8085:branching & logical instruction 14 8085:logical instruction
  • 15. 8085:branching & logical instruction 15 8085:logical instruction
  • 16. 8085:branching & logical instruction 16 8085:logical instruction
  • 17. 8085:branching & logical instruction 17 8085:logical instruction
  • 18. 8085:branching & logical instruction 18 8085:logical instruction
  • 19. 8085:branching & logical instruction 19 8085:logical instruction
  • 20. 8085:branching & logical instruction 20 8085:logical instruction
  • 21. 8085:branching & logical instruction 21 8085:logical instruction
  • 22. 8085:branching & logical instruction 22 8085:logical instruction
  • 23. 8085:branching & logical instruction 23 8085:logical instruction
  • 24. 8085:branching & logical instruction 24 8085:logical instruction
  • 25. 8085:branching & logical instruction 25 8085:logical instruction
  • 26. 8085:branching & logical instruction 26 8085:logical instruction
  • 27. 8085:branching & logical instruction 27 8085:logical instruction
  • 28. 8085:branching & logical instruction 28 8085:logical instruction
  • 29. 8085:branching & logical instruction 29 8085:logical instruction
  • 30. 8085:branching & logical instruction 30 8085:logical instruction
  • 31. 8085:branching & logical instruction 31 8085:logical instruction
  • 32. 8085:branching & logical instruction 32 8085:logical instruction
  • 33. 8085:branching & logical instruction 33