title: check positive number assembly8086
body: <p>iam trying to write an assembly code 8086 i have two array X AND Y size 10 and i want to enter a number and check if its positive y will be 1 if negative it will be 0
  but my code just displayed what i enter a number but i want it like this example .
  example:</p>
  <pre><code>X : 2 -5 -7 8 -4 9 11 -12 90 -50
  Y : 1 0 0 1 1  0 1 1   0   1  0
  </code></pre>
  <p>I wrote:</p>
  <pre><code>.MODEL SMALL
  .DATA
  x db 10 dup (&quot;?&quot;)
  y db 10 dup (&quot;?&quot;)
  .CODE
  MOV AH,1
  INT 21H
  mov si,offset x
  mov di,offset y
  mov [si],al
  cmp si,0
  ja l1
  jmp l2
  l1 : mov al , 1
       mov [di],al
       jmp l3
  l2 : mov ah , 0
       mov y[di] , al
       jmp l3
  
  l3 :
  MOV AH, 2
  mov dl,al
  INT 21H
  cmp si,10
  je l4
  inc si
  inc di
  
  l4 : 
  .EXIT
  END
  </code></pre>