0
4.5kviews
Explain any five arithmetic instructions of 8086 microprocessor with suitable examples.
1 Answer
0
195views

The various arithmetic inst's of 8086 and their proper syntax will be as follows:

1. ADD Dst, src ; [Dst) $\leftarrow$ [Dst) + (src]

eg. ADD BL, CL ; (BL) $\leftarrow$ (BL) + (CL)

It perform addition of 8 or 16 bit ope rant available in Dst & src argument.

2. SUB Dst , src ; [Dst) $\leftarrow$ [Dst) - (src]

Eg. SUB BL, CL ; (BL) $\leftarrow$ (BL) - (CL)

It perform 8 or 16 bit substraction.

3. MUL src ; (Acc) $\leftarrow (Acc) * [Src)$

eg. MUL BL ; (AX) $\leftarrow (AL) * (BL)$

MUL BX ; DX : AX $\leftarrow (AX) * (BX)$

It performs 8 or 16 bit multiplication.

4. Div src ; (ACC) / [src) and store Quo in (ACC) Rem in (DX)

eg. Div BL ; (AL) / (BL)

& after division quotient is in (AL) Remainder is in (AH)

Div BX ; (AX) / (BX)

& After division quotient is in (AX)

Remainder is in (DX)

5. INC Dst ; [Dst) $\leftarrow$ [Dst) + 1

eg. INC BL ; (BL) $\leftarrow$ (BL) + 1

INC BX ; (BX) $\leftarrow$ (BX) + 1

It increment context of destination by 1.

Please log in to add an answer.