1. University of Pune
S.E. I.T.
Subject code: 214447
Processor Architecture and
Interfacing
Part 02: Assembly Language Programming
With 8086
Tushar B Kute,
Sandip Institute of Technology
and Research Centre, Nashik
tbkute@gmail.com
17. SUB Destination, Source
• SUB CX, BX
• SUB CH, AL
• SUB AX, 4563H
• SUB PRICES[BX], 04H
SBB Destination, Source
• SBB CX, BX
• SBB CH, AL
• SBB AX, 4563H
18. DEC Destination
• DEC AL
• DEC BP
• DEC VARIABLE
NEG Destination
• NEG AL
• NEG BX
• NEG BYTE PTR[BX]
35. Jump Instructions
• JMP label
Instruction Description (Jump if) Conditions
JA/JNBE Above/Below Not Equal C=0, Z=0
JAE/JNB Above or Equal/ Not Below C=0, Z=1
JB/JNAE Below/Not Above nor Equal C=1, Z=0
JBE/JNA Below or Equal/Not Above C=1, Z=1
JC Carry flag=1 C=1
JE/JZ Equal / Zero Z=1
36. Jump Instructions
Instruction Description (Jump if) Conditions
JG/JNLE Greater/Not Less Than or C=O, Z=0
Equal
JGE/JNL Greater Than or Equal/Not S=O
Less Than
JL/JNGE Less Than/Not Greater S≠O
Than or Equal
JLE/JNG Less Than or Equal/Not S=O, Z=1
Greater Than
JNC No Carry C=0
JNE/JNZ Not Equal / Not Zero Z=0
37. Jump Instructions
Instruction Description (Jump if) Conditions
JNO Not Overflow O=0
JNP/JPO Not Parity/Parity Odd P=0
JNS Not Sign S=0
JO Overflow O=1
JP/JPE Parity/Parity Even P=1
JS Sign Flag S=1
JCXZ CX is Zero CX=0
38. Iteration Control Instructions
Instruction Description Conditions
for Exit
LOOP Loop through sequence of CX=0
instructions
LOOPE/ Loop through sequence of CX=0 or
instructions ZF=0
LOOPZ
LOOPNE/ Loop through sequence of CX=0 or
instructions ZF=1
LOOPNZ