8086 Instruction Set Summary Hemangi
8086 Instruction Set Summary Hemangi
2. Arithmetic Instructions
Used for performing arithmetic operations.
Instruction Description
ADD Add source to destination
ADC Add with carry
SUB Subtract source from destination
SBB Subtract with borrow
INC Increment operand by 1
DEC Decrement operand by 1
MUL Unsigned multiplication
IMUL Signed multiplication
DIV Unsigned division
IDIV Signed division
NEG Negate (2’s complement)
CMP Compare two operands
3. Logical Instructions
Perform logical operations.
Instruction Description
AND Logical AND
OR Logical OR
XOR Logical Exclusive OR
NOT Logical complement
TEST AND operation, but result not stored
4. Branch Instructions
Used for altering the flow of program execution.
Instruction Description
JMP Unconditional jump
JE/JZ Jump if equal / zero
JNE/JNZ Jump if not equal / not zero
JC Jump if carry
JNC Jump if no carry
JA Jump if above
JB Jump if below
CALL Call a procedure
RET Return from procedure
INT Interrupt
IRET Interrupt return
5. Loop Instructions
Used to repeat a sequence of instructions.
Instruction Description
LOOP Decrement CX and loop if CX != 0
LOOPE/LOOPZ Loop while equal / zero flag is set
LOOPNE/LOOPNZ Loop while not equal / zero flag not set