×

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

Ethernet Frame Format

What is Ethernet? As we know in computer networking, LAN (Local Area Network) is used to connect devices in limited geographical areas like schools or a building.LAN uses different topologies (arrangement...

3 minutes read.

Addressing Modes

Introduction: Addressing Modes An instruction consists of two parts opcode and operands. Opcode tells the operation going to perform, and operand information is the address of the operand. The CPU interprets...

8 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.

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.

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.

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.

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.

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.

Advantages and Disadvantages of Flash Memory

What is Flash Memory? Electrically Erasable Programmable Read-Only Memory (EEPROM) and Erasable Programmable Read-Only Memory (EPROM) are used for flash memory (EEPROM). Although technically the word flash is used in the industry...

3 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.

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.

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 Data Formats

Data Formats In the digital world, everything is based on digits. In every method, the calculation is processed on the digits, and most importantly, the computer only understands the binary language...

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.

Data Transfer and Manipulation

What is Data Transfer? In computer architecture, data transfer refers to the movement of data between different components within a computer system. These components can include the central processing unit (CPU),...

6 minutes read.

8085 instructions set

Introduction: In the computer, the user sends the data. The computer can use data and it also process the data. After the processing, send the result to the user. The specific...

10 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.

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.

8086 Microprocessor Pin Configurations

8086 microprocessor is invented and developed by Intel in 1976. The 8086 Microprocessor is an enhanced version of the 8085 Microprocessor. There are 20 address lines and 16 data lines...

6 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.