title: Sort an array with emu8086 (Assembler)
body: <p>I have to type and array (only with numbers) and when a introduce it, it must be sorted in a second one. All I have to do is to implement the PROC which has to sort them. My problem is that I don't know how, because the only thing I have achieved is to copy the first one into the second one. Thanks for your help and sorry for my English.</p>
  
  <pre><code>;mov ax, vector[si]
  ;mov vector[di], ax
  ;this loop copy all elements
  ; start code
  Sort_DecreasingOrder: 
  
  cmp si, 0
  mov ax, vector1[si] 
  
  bCompare:
  xor di, di
  mov bx, vector2[di]
  cmp ax, bx
  jge IntroduceBefore
  </code></pre>