Skip to content
Related Articles

Related Articles

Improve Article
Arithmetic instructions in 8086 microprocessor
  • Difficulty Level : Basic
  • Last Updated : 22 May, 2018

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:

OPCODEOPERANDEXPLANATIONEXAMPLE
ADDD, SD = D + SADD AX, [2050]
ADCD, SD = D + S + prev. carryADC AX, BX
SUBD, SD = D – SSUB AX, [SI]
SBBD, SD = D – S – prev. carrySBB [2050], 0050
MUL8-bit registerAX = AL * 8-bit reg.MUL BH
MUL16-bit registerDX AX = AX * 16-bit reg.MUL CX
IMUL8 or 16 bit registerperforms signed multiplicationIMUL CX
DIV8-bit registerAX = AX / 8-bit reg. ; AL = quotient ; AH = remainderDIV BL
DIV16-bit registerDX AX / 16-bit reg. ; AX = quotient ; DX = remainderDIV CX
IDIV8 or 16 bit registerperforms signed divisionIDIV BL
INCDD = D + 1INC AX
DECDD = D – 1DEC [2050]
CBWnoneconverts signed byte to wordCBW
CWDnoneconverts signed byte to double wordCWD
NEGDD = 2’s compliment of DNEG AL
DAAnonedecimal adjust accumulatorDAA
DASnonedecimal adjust accumulator after subtractionDAS
AAAnoneASCII adjust accumulator after additionAAA
AASnoneASCII adjust accumulator after subtractionAAS
AAMnoneASCII adjust accumulator after multiplicationAAM
AADnoneASCII adjust accumulator after divisionAAD

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

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :