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

Microprocessor - 8085 Instruction Sets

The document discusses the instruction sets of the 8085 microprocessor. It is divided into 5 categories: control instructions, logical instructions, branching instructions, arithmetic instructions, and data transfer instructions. It then provides examples of three programs - to add two 8-bit numbers, exchange data between two memory locations, and arrange numbers in ascending order - to demonstrate the use of various 8085 instructions.

Uploaded by

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

Microprocessor - 8085 Instruction Sets

The document discusses the instruction sets of the 8085 microprocessor. It is divided into 5 categories: control instructions, logical instructions, branching instructions, arithmetic instructions, and data transfer instructions. It then provides examples of three programs - to add two 8-bit numbers, exchange data between two memory locations, and arrange numbers in ascending order - to demonstrate the use of various 8085 instructions.

Uploaded by

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

1/30/23, 12:22 PM Microprocessor - 8085 Instruction Sets

Microprocessor - 8085 Instruction Sets

Let us take a look at the programming of 8085 Microprocessor.

Instruction sets are instruction codes to perform some task. It is classified into five categories.

S.No. Instruction & Description

Control Instructions
1
Following is the table showing the list of Control instructions with their meanings.

Logical Instructions
2
Following is the table showing the list of Logical instructions with their meanings.

Branching Instructions
3
Following is the table showing the list of Branching instructions with their meanings.

Arithmetic Instructions
4
Following is the table showing the list of Arithmetic instructions with their meanings.

Data Transfer Instructions


5
Following is the table showing the list of Data-transfer instructions with their meanings.

8085 – Demo Programs


Now, let us take a look at some program demonstrations using the above instructions −

Adding Two 8-bit Numbers


Write a program to add data at 3005H & 3006H memory location and store the result at 3007H
memory location.

Problem demo −

(3005H) = 14H
(3006H) = 89H

Result −

14H + 89H = 9DH

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_instruction_sets.htm# 1/2
1/30/23, 12:22 PM Microprocessor - 8085 Instruction Sets

The program code can be written like this −

LXI H 3005H : "HL points 3005H"


MOV A, M : "Getting first operand"
INX H : "HL points 3006H"
ADD M : "Add second operand"
INX H : "HL points 3007H"
MOV M, A : "Store result at 3007H"
HLT : "Exit program"

Exchanging the Memory Locations


Write a program to exchange the data at 5000M& 6000M memory location.

LDA 5000M : "Getting the contents at5000M location into accumulator"


MOV B, A : "Save the contents into B register"
LDA 6000M : "Getting the contents at 6000M location into accumulator"
STA 5000M : "Store the contents of accumulator at address 5000M"
MOV A, B : "Get the saved contents back into A register"
STA 6000M : "Store the contents of accumulator at address 6000M"

Arrange Numbers in an Ascending Order


Write a program to arrange first 10 numbers from memory address 3000H in an ascending order.

MVI B, 09 :"Initialize counter"


START :"LXI H, 3000H: Initialize memory pointer"
MVI C, 09H :"Initialize counter 2"
BACK: MOV A, M :"Get the number"
INX H :"Increment memory pointer"
CMP M :"Compare number with next number"
JC SKIP :"If less, don’t interchange"
JZ SKIP :"If equal, don’t interchange"
MOV D, M
MOV M, A
DCX H
MOV M, D
INX H :"Interchange two numbers"
SKIP:DCR C :"Decrement counter 2"
JNZ BACK :"If not zero, repeat"
DCR B :"Decrement counter 1"
JNZ START
HLT :"Terminate program execution"

https://www.tutorialspoint.com/microprocessor/microprocessor_8085_instruction_sets.htm# 2/2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy