×

8085 Arithmetic Instructions

Arithmetic instructions are a type of instruction in a computer's instruction set that perform arithmetic operations on data. These operations can include addition, subtraction, multiplication, and division. Arithmetic instructions can operate on integers, floating-point numbers, or other types of numeric data. They are an important part of any computer's instruction set and are frequently used in programs to perform mathematical calculations.

The Intel 8085 is an 8-bit microprocessor that was introduced in 1977. It is capable of performing arithmetic instructions, such as addition, subtraction, increment, and decrement.

Here is a table of the 8085 arithmetic instructions:

InstructionDescription
ADDAdd the content of a register or memory location to the accumulator
ADIAdd an immediate value to the accumulator.
SUBSubtract the content of a register or memory location from the Accumulator  
SUISubtract an immediate value from the accumulator
INRIncrement the content of a register or memory location by 1
DCRDecrement the content of a register or memory location by 1

Here is a brief description of each instruction:

  1. ADD - Thi instruction is used to add the values in two registers or a register and a memory location, and store the result in a register. The syntax for this instruction is "ADD destination". The destination can be a register (A, B, C, D, E, H, or L) or a memory location (specified using the H and L registers). This instruction can also be used to add an immediate value to the accumulator (register A) using the "ADI data" syntax, where "data" is the immediate value to be added.
  2. ADC - This instruction is used to add the values in two registers or a register and a memory location, including the carry flag, and store the result in a register. The syntax for this instruction is "ADC destination". The destination can be a register (A, B, C, D, E, H, or L) or a memory location (specified using the H and L registers). This instruction can also be used to add an immediate value and the carry flag to the accumulator (register A) using the "ACI data" syntax, where "data" is the immediate value to be added.
  3. SUB - This instruction is used to subtract the value of a register or memory location from the accumulator (register A) and store the result in the accumulator. The syntax for this instruction is "SUB destination". The destination can be a register (B, C, D, E, H, or L) or a memory location (specified using the H and L registers). This instruction can also be used to subtract an immediate value from the accumulator using the "SUI data" syntax, where "data" is the immediate value to be subtracted.
  4. SBB - This instruction is used to subtract the value of a register or memory location, including the carry flag, from the accumulator (register A) and store the result in the accumulator. The syntax for this instruction is "SBB destination". The destination can be a register (B, C, D, E, H, or L) or a memory location (specified using the H and L registers). This instruction can also be used to subtract an immediate value and the carry flag from the accumulator using the "SBI data" syntax, where "data" is the immediate value to be subtracted.
  5. INR - This instruction is used to increment the value in a register or memory location by 1. The syntax for this instruction is "INR destination", where "destination" is the register (A, B, C, D, E, H, or L) or memory location (specified using the H and L registers) to be incremented.
  6. DCR - This instruction is used to decrement the value in a register or memory location by 1. The syntax for this instruction is "DCR destination", where "destination" is the register (A, B, C, D, E, H, or L) or memory location (specified using the H and L registers) to be decremented.
  7. DAD - This instruction is used to double the value in the H and L registers, and add the result to the value in the D and E registers. The syntax for this instruction is "DAD destination", where "destination" is the register pair (B, D, or H) to be used. This instruction is often used to perform 16-bit arithmetic, such as incrementing a 16-bit memory address or adding two 16-bit numbers.
  8. DCX - This instruction is used to decrement the value in the H and L registers by 1. The syntax for this instruction is "DCX destination", where "destination" is the register pair (B, D, or H) to be decremented. This instruction is often used to perform 16-bit arithmetic, such as decrementing a 16-bit memory address.

Related Topics

Bipartite Graph

A graph is said to be bipartite if and only if we can divide all the vertices of a graph into two sets such that these sets are mutually exclusive...

4 minutes read.

Machine Instructions

What is a Digital Computer? A computer that takes input in a binary form and produces output in binary form. The question arises of what kind of input the computer takes...

4 minutes read.

CPU Registers

CPU Registers Within the CPU, we have small- small storage units called registers. If we are executing a certain program within the CPU, there's a need to store that program content,...

11 minutes read.

Local Broadcast Address and loopback address

In computer networking, if you send the data from one source to another source or group of sources in the form of packets, then this is called casting. We can categorize...

3 minutes read.

Addressing mode in 8085 microprocessor

What is a Microprocessor? Microprocessor is a unit which is able to perform arithmetic and logical operations and is built on a single chip. The 8085 microprocessor is built by Intel which...

4 minutes read.

74138 IC DECODER

74138 DECODER Decoder A combinational circuit called a decoder can have up to 2n output lines and 'n' input lines. When a decoder is enabled, depending on the mix of inputs,...

4 minutes read.

Control Signals in 8155 Microprocessor

Intel designed the chip 8155 used to interface with I/O devices. Basically, the 8085 microprocessor is directly unable to deal with its peripheral input output devices for reading data or...

3 minutes read.

Computer Organization and Architecture Tutorial

Introduction to Computer Organization and Architecture In this modern era, or we can say computer era, Technology from all around surrounds us. Human is conserved, connected and absorbed by Technology. From...

4 minutes read.

CarryLook Ahead Adder

What is Adder? Adder is the combinational circuit that is used to add the bits in digital electronics. As we know, in the digital system, every number is represented in the...

4 minutes read.

Instruction Cycle: Computer Organization and Architecture

What is an effective Address? “Effective address is the address of operand in a computation-type instruction.” Computation type instructions are like ADD, SUB, MOV, OR, AND, etc., which require operand to...

4 minutes read.

Biconnectivity in a Graph

What is a Graph? A graph is a structure where values are stored at the vertex, and the relation between vertices is denoted by edges. In a graph, if there is only...

4 minutes read.

Convert a number from base 2 to base 6

Base 2 Base 2 is the format where you can represent any number with just two values which are 0 and 1. With the help of 0s and 1s, we can...

4 minutes read.

8085 Arithmetic Instructions

Arithmetic instructions are a type of instruction in a computer's instruction set that perform arithmetic operations on data. These operations can include addition, subtraction, multiplication, and division. Arithmetic instructions can...

4 minutes read.

Digital Number System

Digital Number System: The computer understands digital language only. Many number systems are used in digital technology. The most common are Decimal, Binary, Octal and Hexadecimal number systems. Types of the...

7 minutes read.

8255 Microprocessor Operating Modes

8255 microprocessor was invented by intel in the year 1980s. 8255 microprocessor is a general-purpose microprocessor that can be programmed. 8255 is mostly used as an interface between devices like...

3 minutes read.

Microprocessor classification

Introduction: Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. that is the brain of the computer machine. The microprocessor is known as the...

6 minutes read.

BCD to 7 Segment Decoder

What is BCD? BCD is called Binary Coded Decimal. As you know there are a lot of forms in which we can represent the number like Binary, decimal, hexadecimal, and octal...

3 minutes read.

Types of Microprocessors

Introduction:Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. That is the brain of the computer machine.  The microprocessor is the Processor or CPU (Central...

3 minutes read.

COA: Interrupt and its types

Introduction: In general terms, the word interrupt means to stop the progress of ongoing work in between or to break the continuation of the work. In early digital computing, the...

5 minutes read.

Data Path, ALU and Control Unit

Data Path, ALU(Arithmetic Logic Unit) and Control Unit What is the Data path? Suppose any data processing operation should be performed in the CPU like transferring the content of register from one...

5 minutes read.