title: In Assembly Language I am using 16 bits register,How I print 6 in this code?
body: <pre><code>.data
  
  num dw 2,4,6,8,10
  
  .code
  
  main proc
  
  mov eax,0
  
  mov si,2
  
  mov ax,num[si*2]
  </code></pre>
  
  <p>I want to print the array element 6 but error is invalid use of register. how to solve it.</p>