Arithmetic instructions in 8085 microprocessor
Last Updated :
07 May, 2023
Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more. In 8085 microprocessor, the destination operand is generally the accumulator. Following is the table showing the list of arithmetic instructions:
Opcode | Operand | Explanation | Example |
---|
ADD | R | A = A + R | ADD B |
ADD | M | A = A + Mc | ADD 2050 |
ADI | 8-bit data | A = A + 8-bit data | ADI 50 |
ADC | R | A = A + R + prev. carry | ADC B |
ADC | M | A = A + Mc + prev. carry | ADC 2050 |
ACI | 8-bit data | A = A + 8-bit data + prev. carry | ACI 50 |
SUB | R | A = A - R | SUB B |
SUB | M | A = A - Mc | SUB 2050 |
SUI | 8-bit data | A = A - 8-bit data | SUI 50 |
SBB | R | A = A - R - prev. carry | SBB B |
SBB | M | A = A - Mc -prev. carry | SBB 2050 |
SBI | 8-bit data | A = A - 8-bit data - prev. carry | SBI 50 |
INR | R | R = R + 1 | INR B |
INR | M | M = Mc + 1 | INR 2050 |
INX | r.p. | r.p. = r.p. + 1 | INX H |
DCR | R | R = R - 1 | DCR B |
DCR | M | M = Mc - 1 | DCR 2050 |
DCX | r.p. | r.p. = r.p. - 1 | DCX H |
DAD | r.p. | HL = HL + r.p. | DAD H |
1 Add) - The content of operand are added to the content of the accumulator and the result is stored in accumulator .
with the addition instruction , the following 3 operations can be done.
1) any 8 bit number can be added to the contents of the accumulator and the result is stored in the accumulator.
2) The contents of a register can be added to the contents of the accumulator and result is stored in the accumulator .
3) The contents of a memory location can be added to the contents of the accumulator and result is stored in accumulator.
this 1 byte instruction.
example - addb c it adds the content of accumulator to the content of the register b
2) SUB Any 8 bit data or the contents of a register or contents of a memory location can be subtracted from the contents of the accumulator.
with the subtraction instruction the following 3 operator can be done .
1) any 8 bit number can be subtracted from the contents of the accumulator . The result is stored in the accumulator.
In the table, R stands for register M stands for memory Mc stands for memory contents r.p. stands for register pair
Applications:
Data processing: The arithmetic instructions in the 8085 microprocessor are used to perform mathematical operations on data stored in memory or registers. This allows the microprocessor to manipulate and process data in various ways, such as performing calculations, generating checksums, and processing sensor data.
Control systems: The arithmetic instructions are used to perform complex calculations in control systems. These calculations are used to make decisions based on sensor data and other inputs, and to generate control signals that regulate the behavior of the system.
Signal processing: The arithmetic instructions in the 8085 microprocessor are used in digital signal processing applications, such as audio and image processing. These instructions are used to perform various operations on the digital signal data, such as filtering, compression, and encryption.
Communication systems: The arithmetic instructions are used to perform various operations in communication systems, such as signal modulation and demodulation, error correction, and encryption/decryption.
Gaming: The arithmetic instructions are used to perform various operations in gaming applications, such as calculating the trajectory of projectiles, simulating physics, and rendering graphics.
Advantages:
Efficient arithmetic operations: The arithmetic instructions in the 8085 microprocessor can perform a variety of arithmetic and logical operations quickly and efficiently, making it suitable for applications that require fast arithmetic operations.
Reduced memory access: The use of registers and the accumulator in the 8085 microprocessor can help reduce the number of memory accesses required during arithmetic operations, which can improve the overall performance of the system.
Supports a wide range of operations: The arithmetic instructions in the 8085 microprocessor support a wide range of operations, including addition, subtraction, logical AND/OR/XOR, and shifting/rotating operations.
Simplifies programming: The arithmetic instructions in the 8085 microprocessor simplify programming by providing a set of dedicated instructions for performing arithmetic and logical operations.
Disadvantages:
Limited precision: The 8085 microprocessor uses 8-bit registers and arithmetic operations, which limits the precision of calculations that can be performed. This can be a disadvantage for applications that require high precision arithmetic.
Limited range of operations: Although the 8085 microprocessor supports a wide range of arithmetic and logical operations, it does not support advanced operations such as trigonometric functions or complex numbers.
Limited memory access: Although the use of registers can reduce the number of memory accesses required, the limited number of registers in the 8085 microprocessor can restrict the amount of data that can be manipulated at any given time.
Complex addressing modes: The addressing modes used in the arithmetic instructions can be complex, which can make programming more difficult.
Similar Reads
Microprocessor Tutorials A microprocessor is fabricated on a single integrated circuit (IC) or chip that is used as a central processing unit (CPU). It is used as an electronic device, giving output instructions and executing data. In the microprocessor tutorial page, We will cover some basic topics like the introduction to
9 min read
Introduction
Introduction of Microprocessor In this article we will go through the Microprocessor, we will first define what is a Microprocessor, then we will go through its different types with its block diagram and we will see different types of processors, At last, we will conclude our article with some applications and FAQs.What is Microp
6 min read
Types of Microprocessors This article provides an overview of the microprocessor, one of the most important components of a modern computing device. It describes how they function like the "brain" of the computer and enumerates the different types of Microprocessors. This also includes the vector processors, array processor
6 min read
Microprocessor | Intel x86 evolution and main features Intel x86 architecture has evolved over the years. From a 29, 000 transistors microprocessor 8086 that was the first introduced to a quad-core Intel core 2 which contains 820 million transistors, the organization and technology have changed dramatically. Some of the highlights of the evolution of x8
5 min read
Evolution of Microprocessors Transistor was invented in 1948 (23 December 1947 in Bell lab). IC was invented in 1958 (Fair Child Semiconductors) By Texas Instruments J Kilby. The first microprocessor was invented by INTEL(INTegrated ELectronics). Size of the microprocessor - 4 bit NameYear of InventionClock speedNumber of trans
5 min read
8085 Microprocessor
Architecture of 8085 microprocessor A microprocessor is fabricated on a single integrated circuit (IC) or chip that is used as a central processing unit (CPU).The 8085 microprocessor is an 8-bit microprocessor that was developed by Intel in the mid-1970s. It was widely used in the early days of personal computing and was a popular cho
11 min read
Pin diagram of 8085 microprocessor The 8085 microprocessor is a popular 8-bit microprocessor developed by Intel. It has 40 pins, each with a specific function for interfacing with memory, input/output devices, and other components.Pin diagram of 8085 microprocessor is shown below: Key Pin Descriptions1. Address Bus and Data BusAddres
5 min read
Registers of 8085 microprocessor Introduction : A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and processes data according to those instructions and provide results as output. A 8085 mi
8 min read