title: How to compare 2 arrays on assembly language (x86)?
body: <pre><code>    .MODEL  SMALL
      .STACK  64
      .DATA
  
      LIST1 DB 1H,0ABH,2H,3AH,12H,0DAH
      LIST2 DB 3H,7H,0BCH,0A8H,0C2H,0DAH
      LIST3 DB 6 DUP (?)
  
      .CODE
  
  
  MAIN    PROC    FAR
      MOV     AX, @data
      MOV DS, AX
  
      MOV CX,6H
      LEA SI,LIST1
      LEA BX,LIST2
      LEA DI,LIST3
  
  A1: MOV AL,[SI]
      ADD AL,BX
      MOV [DI],AL
      INC SI
      INC BX
      INC DI
      LOOP    A1
  </code></pre>
  
  <p>I want to compare list1 &amp; list2 and put the greater number in list3. How to do that?</p>