Published On Sep 4, 2020
In this program I have shared the three step approach that I follow while coding any program in Assembly Language - AIC (Algorithm , Instructions , Coding ).
** TIME STAMPS **
0:00 - INTRODUCTION
1:18 - Sorting Algorithm.
8:55 - Instructions we will use while writing the program.
15:45 - emu8086 software coding.
33:00 - How to write the opcode,labels,memory and comments for our instructions?
34:31 - WORK IT OUT BY YOURSELF.
Code for Ascending order :
MOV SI,1200h
MOV CL,[SI]
DEC CL
LOOP3:
MOV SI,1200h
MOV CH,[SI]
DEC CH
INC SI
LOOP2:
MOV AL,[SI]
INC SI
CMP AL,[SI]
JC LOOP1
XCHG AL,[SI]
XCHG [SI-1],AL
LOOP1:
DEC CH
JNZ LOOP2
DEC CL
JNZ LOOP3
HLT
For Descending order - Replace the JC with JNC instruction.
Theory Videos : / @enjinea6745
Please LIKE , SHARE and SUBSCRIBE if you found this video helpful.
Drop your feedback in comment box.
Thank you.