Курсовая работа: Ассемблер и программирование
mindb0
maxdb0
n_mindw1
n_maxdw1
razdb0
adb2,6,4,1,7,9,3
n=$-a
enter db 10,13,'$'
str db 10,13,'Ishodnii massiv: $'
str1 db 10,13,'Resultat: $'
str2 db 10,13,'Number min chisla: $'
str3 db 10,13,'Number max chisla: $'
str4 db 10,13,'Raznost mezhdu max i min chislami: $'
str5 db 10,13,'Press any key........$'
space db ' $'
d_seg ends
c_seg segment
assume cs:c_seg, ds:d_seg
start:
movax,d_seg
movds,ax
xorsi,si
moval,a[si]
movmin,al
movmax,al
incsi
m3:
moval,a[si]
cmpal,max