Professional Documents
Culture Documents
Lecturer
CSED
20-March-2018
Thapar University
PRESENTED BY: HARPREET SINGH 1
20-March-2018 PRESENTED BY: HARPREET SINGH 2
20-March-2018 PRESENTED BY: HARPREET SINGH 3
20-March-2018 PRESENTED BY: HARPREET SINGH 4
20-March-2018 PRESENTED BY: HARPREET SINGH 5
20-March-2018 PRESENTED BY: HARPREET SINGH 6
20-March-2018 PRESENTED BY: HARPREET SINGH 7
20-March-2018 PRESENTED BY: HARPREET SINGH 8
Instruction Set of 8086
An instruction is a binary pattern designed
inside a microprocessor to perform a specific
function.
The entire group of instructions that a
microprocessor supports is called
Instruction Set.
8086 has more than 20,000 instructions.
E.g.: PUSH BX
POP Des:
It pops the operand from top of stack to Des.
SAHF:
It copies the contents of AH to lower byte of flag register.
PUSHF:
POPF:
Pops the stack top to flag register.
E.g.:
E.g.:
E.g.:
SUB AL, 74H
SUB DX, AX
SUB AX, [BX]
E.g.:
SBB AL, 74H
SBB DX, AX
SBB AX, [BX]
CF is not effected.
E.g.: INC AX
CF is not effected.
E.g.: DEC AX
Example 3
52H
61H
• Example 2
mov AL,'3' ;
mov BL,'9' ;
and AL,0FH ;
and BL,0FH ;
mul BL ;
aam ;
or AL,30H ;
• Example 2
mov AL,'3' ; multiplier in ASCII
mov BL,'9' ; multiplicand in ASCII
and AL,0FH ; multiplier in unpacked BCD form
and BL,0FH ; multiplicand in unpacked BCD form
mul BL ; result 001BH is in AX
aam ; AX := 0207H
or AL,30H ; AL := 37H
• HexSeries:-
13(D),14(E),15(F),10,11,12,13,14,15,16,17,18,19,1A,1B
DX : AX = AX * Src
IMUL Src:
It is a signed multiplication instruction.
If you move the byte into AL, you can use the CBW
instruction to do this.