Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

8085 Assembly Language Programming

YASH PAL, March 17, 2026April 25, 2026

8085 Assembly Language Programming – A user can interact with the microprocessor through the assembly language instructions. These instructions are the commands to the microprocessor to be executed in the given sequence to complete the given task. The assembly language instructions are also called mnemonics.

Table of Contents

  • 8085 Assembly Language Programming
    • Instruction Format
    • Opcode Format

8085 Assembly Language Programming

In 8085 Assembly language programming, we need to define two formats: instruction format and Opcode format. Let’s look at both formats in detail and how they work in Assembly language.

Instruction Format

Each instruction of the 8085 microprocessor has two specific information fields. One is the operation code (op code), which specifies the operation to be performed. The operation is specified by binary code, hence the name is operation code. Second is the operand, which says about the data on which task is to be performed. This is shown in Figure 1.

OpcodeOperand
Figure 1: Instruction Format

The first field of the instruction is always the opcode. Still, the second field may be a source/destination operand, or a source/destination operand address, or next instruction address opcode and operand collectively construct a mnemonic (instruction), the length of which can be one, two, or three bytes.

MnemonicOpcodeOperandType of OperandComment
MOV A, BMOVA, BSource/destination operandCopy data from the source register B to the destination register A.
ADD MADDMSource operand addressAdd the contents of the memory location to the contents of the accumulator.
INR MINRMDestination operand addressIncrement the contents of memory location.
JMP 5000HJMP5000HNext instruction addressChange the program sequence to the location 5000H.

Opcode Format

For an assembly language program, an opcode is an operation code which is represented by an English-like word. The opcode is unique for each instruction and contains the information about the operation, the register to be used, the memory to be used, etc. The 8085 microprocessor has an 8-bit opcode and identifies all operations, registers, and flags with this specific code. All internal registers are identified as given in the table below.

RegistersCode
B0 0 0
C0 0 1
D0 1 0
E0 1 1
H1 0 0
L1 0 1
M (Memory)1 1 0
A1 1 1
Register PairsCodes
BC0 0
DE0 1
HL1 0
AF or SP1 1

Similarly, there are different codes for each operation. Some of the operation codes are given in the table below.

Operation code = D7 – D0

InstructionD7D6D5D4D3D2D1D0
MOV Rd, Rs01DDDSSS
MVI R, data (8 bit)00DDD110
LXI Rp, data (8 bit)00DD0001
ANA R10100SSS

Here, R is any 8-bit register, Rd is the destination register, Rs is the source register, and Rp is the register pair. DDD defines the code for the destination register, SSS defines the source register, and DD defines the register pair.

Let’s take some examples to understand assembly language programming instructions in the 8085 microprocessor.

Example 1

InstructionMOV A, B
Operation Code0 1 D D D S S S
Register Code 1 1 1 0 0 0
Opcode0 1 1 1 1 0 0 0

Example 2

InstructionMVI A data (8 bit)
Operation Code0 0 D D D 1 1 0
Register Code 1 1 1
Opcode0 0 1 1 1 1 1 0 => 3EH

Example 3

InstructionLXI B, data (16 bit)
Operation Code0 0 D D 0 0 0 1
Register Code 0 0
Opcode0 0 0 0 0 0 0 1 => 01H

Example 4

InstructionANA B
Operation Code1 0 1 0 0 S S S
Register Code 0 0 0
Opcode1 0 1 0 0 0 0 0 => A0H

Microprocessor Subject Tutorials & Notes | Beginners Guide
engineering subjects Microprocessor microprocessor

Post navigation

Previous post
Next post

Introduction to Microprocessor
Generations of Computer
Microprocessor Types
Types of Computer Systems
Types of Programming Languages
Basic Computer Structure
Interfacing Logic Devices
Number System in Computer
Number System Arithmetic – Addition & Subtraction

Microprocessor as CPU
8085 Microprocessor Architecture
Pin Configuration of 8085 Microprocessor
Demultiplexing of Address and Data Bus in 8085 Microprocessor
Basic Operations of the 8085 Microprocessor
Memory Organization in 8085 Microprocessor

Microprocessor memory structure
Memory Interfacing with 8085 Microprocessor
Memory address decoding in a microprocessor
Input/Output Interfacing in Microprocessor

8085 Microprocessor Programming Model
8085 Assembly Language Programming
8085 Microprocessor Instructions
Microprocessor Programming Steps
Flowchart Design of a Program
8085 Microprocessor Data Transfer Instructions
8085 Microprocessor Arithmetic Instructions
8085 Microprocessor Logical Instructions
8085 Microprocessor Branch Instructions
8085 Microprocessor Machine-Processor Control Instructions
Basic Structure of an Assembly Language Program
Programming Techniques for Repeated Tasks
Debugging of a Microprocessor Program

8085 Microprocessor Timing Operations
Timing Diagram of 8085 Microprocessor
Time Delay in Microprocessor
Stack in 8085 Microprocessor
Subroutine in 8085 Microprocessor
MACRO in Microprocessor

Interrupts in 8085 Microprocessor
Digital to Analog Converter (DAC) in Microprocessor
Analog to Digital Converter (ADC) in Microprocessor

Programmable Peripheral Interface
8255 (PPI) Programmable Peripheral Interface
Programmable Interval Timer (PIT) 8253/8254
Programmable Interrupt Controller (PIC) 8259
Direct Memory Access (DMA) Controller 8257

8086 Microprocessor Architecture, Instructions, and Pin Diagram
Addressing Modes of the 8086 Microprocessor
Instruction Set of 8086 Microprocessor
8088 Microprocessor Architecture with Pin Diagram
Difference between 8085, 8086, and 8088 Microprocessors
80186 Microprocessor Architecture
80286 Microprocessor Architecture & Features
80386 Microprocessor Architecture & Features
80486 Microprocessor Architecture & Features
80586 (Pentium) Microprocessor Architecture & Features

8051 Microcontroller Architecture
8051 Microcontroller Memory Organization
8051 Microcontroller Pin Configuration & Programming Model
8051 Microcontroller Timers and Counters
Serial Communication in 8051 Microcontroller
Interrupts of the 8051 Microcontroller
Addressing Modes of the 8051 Microcontroller
Intel MMX Architecture
Dual Core Processor

LED & Multiplexed Display Interfacing with Microprocessor
Liquid Crystal Display (LCD) Pin Configuration & Interfacing
Matrix Keyboard Interfacing with Microprocessor
8279 Keyboard/Display Controller
Programmable Communication Interface (USART) 8251
Serial Communication Standards in Microprocessor
Computer System Standard Buses

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Our content is designed to simplify complex concepts through clear explanations, diagrams, and structured learning—helping students build strong fundamentals and succeed academically without financial barriers.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes