The Wayback Machine - https://web.archive.org/web/20240729191323/https://www.geeksforgeeks.org/arithmetic-instructions-8086-microprocessor/
Open In App

Arithmetic instructions in 8086 microprocessor

Last Updated : 22 May, 2018
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Arithmetic Instructions are the instructions which perform basic arithmetic operations such as addition, subtraction and a few more. Unlike in 8085 microprocessor, in 8086 microprocessor the destination operand need not be the accumulator.

Following is the table showing the list of arithmetic instructions:

OPCODE OPERAND EXPLANATION EXAMPLE
ADD D, S D = D + S ADD AX, [2050]
ADC D, S D = D + S + prev. carry ADC AX, BX
SUB D, S D = D – S SUB AX, [SI]
SBB D, S D = D – S – prev. carry SBB [2050], 0050
MUL 8-bit register AX = AL * 8-bit reg. MUL BH
MUL 16-bit register DX AX = AX * 16-bit reg. MUL CX
IMUL 8 or 16 bit register performs signed multiplication IMUL CX
DIV 8-bit register AX = AX / 8-bit reg. ; AL = quotient ; AH = remainder DIV BL
DIV 16-bit register DX AX / 16-bit reg. ; AX = quotient ; DX = remainder DIV CX
IDIV 8 or 16 bit register performs signed division IDIV BL
INC D D = D + 1 INC AX
DEC D D = D – 1 DEC [2050]
CBW none converts signed byte to word CBW
CWD none converts signed byte to double word CWD
NEG D D = 2’s compliment of D NEG AL
DAA none decimal adjust accumulator DAA
DAS none decimal adjust accumulator after subtraction DAS
AAA none ASCII adjust accumulator after addition AAA
AAS none ASCII adjust accumulator after subtraction AAS
AAM none ASCII adjust accumulator after multiplication AAM
AAD none ASCII adjust accumulator after division AAD

Here D stands for destination and S stands for source.
D and S can either be register, data or memory address.


Previous Article
Next Article

Similar Reads

Logical instructions in 8086 microprocessor
Introduction : Logical instructions in the 8086 microprocessor are instructions that perform logical operations on data stored in registers or memory locations. These instructions can manipulate bits within a byte, set or clear individual bits, or perform Boolean operations such as AND, OR, XOR, and NOT. Some of the commonly used logical instructio
5 min read
Data transfer instructions in 8086 microprocessor
Introduction : Data transfer instructions in the 8086 microprocessor are used to move data between memory locations, registers, and input/output (I/O) devices. These instructions are essential for manipulating data within a program, as well as for communicating with external devices. Data transfer instructions are a fundamental part of programming
4 min read
Process control instructions in 8086 microprocessor
Process control instructions are the instructions which control the processor's action by setting(1) or resetting(0) the values of flag registers. Following is the table showing the list of process control instructions: OPCODEOPERANDEXPLANATIONEXAMPLESTCnonesets carry flag to 1STCCLCnoneresets carry flag to 0CLCCMCnonecompliments the carry flagCMCS
1 min read
Program execution transfer instructions in 8086 microprocessor
Prerequisite - Branching instructions in 8085 microprocessor Program execution transfer instructions are similar to branching instructions and refer to the act of switching execution to a different instruction sequence as a result of executing a branch instruction. The two types of program execution transfer instructions are: Unconditional Conditio
3 min read
String manipulation instructions in 8086 microprocessor
In this Article, We will be going through the String Manipulation Instruction, We will start our Article with the Introduction of the String Manipulation Instruction in the 8086, Then We will go through the different String Manipulation Instructions with some Examples, and At last, we will conclude our Article with Some FAQs. What are String Manipu
5 min read
Arithmetic instructions in 8085 microprocessor
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: OpcodeOperandExplanationExampleADDRA = A + RADD BADDMA = A + McADD 2050
4 min read
Arithmetic Instructions in 80386 Microprocessor
A Microprocessor is an important part of a computer architecture without which you will not be able to perform anything on your computer. The 80386 offers a large number of directions that take into consideration more effective and flexible processing. Thus, we should make a plunge and investigate the entrancing universe of math guidelines in the 8
4 min read
8086 program to transfer a block of 4 bytes by using string instructions
Problem - Write a program to transfer a block of 4 bytes, starting address is 0500 and transfer the block at address 0600 by using string instructions. Example - Assumptions - Assume that there are 4 blocks in memory addresses 0500, 0501, 0502, 0503. Algorithm – Assign value 500 in SI and 600 in DI Assign the value 0000 H to AX Move the content of
2 min read
Logical instructions in 8085 microprocessor
Introduction : Logical instructions in the 8085 microprocessor are a set of instructions that perform logical operations on data in registers and memory. Logical operations are operations that manipulate the bits of data without affecting their numerical value. These operations include AND, OR, XOR, and NOT. The logical instructions in the 8085 mic
6 min read
Data transfer instructions in 8085 microprocessor
Data transfer instructions are the instructions that transfer data in the microprocessor. They are also called copy instructions. Here is the following is the table showing the list of logical instructions: OPCODEOPERANDEXPLANATIONNo. of bytesMachine cyclesNo. of T-statesEXAMPLEMOVRd, RsRd = Rs11 opcode fetch4MOV A, BMOVRd, MRd = Mc1 1 opcode fetch
4 min read
three90RightbarBannerImg