0% found this document useful (0 votes)
40 views14 pages

Sharda University School of Engineering & Technology

This document provides information about the 8085 microprocessor instruction set. It discusses that the 8085 has 246 instructions that are represented by 8-bit binary opcodes. The instructions are classified into five categories: data transfer, arithmetic, logical, branching, and machine control operations. Examples of instructions from each category are provided along with their operations and addressing modes. An example program that adds two 16-bit numbers using 8085 instructions is also included.

Uploaded by

asrar120
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views14 pages

Sharda University School of Engineering & Technology

This document provides information about the 8085 microprocessor instruction set. It discusses that the 8085 has 246 instructions that are represented by 8-bit binary opcodes. The instructions are classified into five categories: data transfer, arithmetic, logical, branching, and machine control operations. Examples of instructions from each category are provided along with their operations and addressing modes. An example program that adds two 16-bit numbers using 8085 instructions is also included.

Uploaded by

asrar120
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

SHARDA UNIVERSITY

SCHOOL OF ENGINEERING &


TECHNOLOGY
MICROPROCESSOR
8085
INSTRUCTION SET
Instruction Set of 8085
An instruction is a binary pattern designed inside
a microprocessor to perform a specific function.
The entire group of instructions that a
microprocessor supports is called Instruction Set.
8085 has 246 instructions.
Each instruction is represented by an 8-bit binary
value.
These 8-bits of binary value is called Op-Code
or
Instruction Byte.
8085 inst Classification

The instruction set is classified into the following


five functional categories:
1. Data transfer (copy) operations
2. Arithmetic operations
3. Logical operations
4. Branching operations
5. Machine control operations
Data transfer (copy) operation
Copying data from source to destination without
modifying the contents of the source
The data is transferred :
1. Between registers
2. Specific data byte to reg. or memory location
3. Between memory location and registers
4. Between an I/O device and accumulator
5. Between registers and stack memory
6. Load an 8 bit number in a register
7. Load 16 bit number in a register pair
INSTRUCTI EXAMPLE OPERATIONS ADDRESSIN
ON G MODE

MVI R, 8-bit MVI B, 4FH Load 8-bit data in a register Indirect

MOV Rd,Rs MOV B,A Copy data from source register Indirect
MOV C,B Rs into destination register Rd

LXI Rp, 16 bit LXI B,2050H Load 16 bit number in a register Immediate
pair
LDA 16-bit LDA 2050H Copy the data byte into A from Direct
the memory specified by 16-bit
address
INSTRUCTI EXAMPLE OPERATIONS ADDRESSIN
ON G MODE
STA 16-bit STA 2070H Copy the data byte into A from Direct
the memory specified by 16-bit
address

LDAX Rp LDAX B Copy the data byte into A from Indirect


the memory specified by the
address in the register pair

STAX Rp STAX D Copy the data from A into the Indirect


memory specified by the
address in the register pair
EXAMPLE
Load the accumulator A with the data byte
82H(The letter H indicates hexadecimal number)
and save the data in register B.
SOLUTION
Instruction MVI A 82H
MOV B,A

The first instruction is a 2 byte instruction that


load the accumulator with the data byte 82H and
the second instruction MOV B,A copies the
contents of the accumulator in register B without
changing the contents of the accumulator.
Arithmetic operations
Perform arithmetic operations such as:
Addition – adding any 8-bit numbers, mem loc,
or reg. content can be added to the contents of
the accumulator
Subtraction - Subtracting any 8-bit numbers,
memory loc, or reg. content can be subtracted
from the contents of the accumulator (using 2’s
complement)
Increment / Decrement
INSTRUCTI EXAMPLE OPERATION ADDRESSING
ON MODE

ADD R ADD B Add the contents of Register


register to the register to
the content of A

SUB R SUB C Subtract the contents of Register


a register from the
contents of A
ADI 8-Bit ADI 37H Add 8 bit data to the Immediate
contents of A
INSTRUCTI EXAMPLE OPERATION ADDRESSING
ON MODE
SUI 8 bit SUI 7FH Subtract 8 bit data from Immediate
the contents of A

INR M INR M Increments the contents Indirect


of memory, the address
of which is in HL
DCR M DCR M Decrement the contents Indirect
of a memory, the address
of which is in HL
INSTRUCTIO EXAMPLE OPERATION ADDRESSING
N MODE

ADD M ADD M Add the contents of Indirect


memory to A; the
address of memory is in
HL register
SUB M SUB M Subtract the contents of Indirect
memory A; the address
of memory is in HL
register
INR R INR D Increment the contents Register
of a register
DCR R DCR E Decrement the contents Register
of a register
EXAMPLE WAP to add two 16 bit number
Solution 2000 LXI H 2501
MVI C 00H
MOV A,M
INX H
ADD M
DAA
JNC 200C
INR C
STA 2503
MOV A,C
STA 2504
RST 5
END
SUBMITTED BY
KUMAR ANURAG …………090103105
IFTEKHAR AHMED……….090103088
AZIM ISLAM………………….090103062
ANURAG CHAUDHURI….090103041
PUNEET SHARMA…………..090103167

SET
Session 2010-2011

You might also like