Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 48

INSTRUCTION SET Data copy/transfer

instructions

Arithmetic and
logical instructions

Branch instructions

Instruction set of
Loop Instructions

8086 Machine control


Instructions

Flag manipulation
instructions

Shift and Rotate


instructions

String Instructions
DATA TRANSFER INSTRUCTIONS
IN − Used to read a byte or word from the provided port to the
accumulator.
OUT − Used to send out a byte or word from the accumulator to the
provided port.
The LEA stands for load Effective address. As the name implies,
it takes the data from the source and copies it to the destination operand.
Both MOV and LEA instructions copy data from source to destination
but the difference between them is LEA copies only offset address or a
memory address to destination register.
The syntax of LEA instruction is:
LEA Reg, Source
For example:
LEA AX, [BX] Stores the offset address of BX into AX.
LEA CX, var_1 Stores the address of var_1 into CX register
SAHF
The SAHF instruction stores the 8-bit data of AH register into the
lower 8 bits of the flag register. It has no operands.
ARITHMETIC INSTRUCTIONS
Multiplies an unsigned byte or word by the contents of AL.
The unsigned byte or word may be in any one of the GP              registers or
memory locations.
The most significant word of the result is stored in DX, while the  least
significant word is stored in AX.
All flags are modified depending upon the result.
Immediate operand is not allowed.
LOGICAL INSTRUCTION
CONTROL TRANSFER/
BRANCHING
INSTRUCTIONS
FLAG MANIPULATION
AND PROCESSOR
CONTROL INSTRUCTIONS
THANK YOU

You might also like