title: How do I print 0,2,4,6,... in assembly language?
body: <p>I have an assignment from my comp. system org. subject and unfortunately I'm kind of new when it comes to assembly language. I'm supposed to write a program that displays the numbers 0,2,4,6,8,10 respectively. How would I go about this?</p>
  
  <p>Maybe this'll answer my question: (Reactions please)</p>
  
  <pre><code>.model small
  .stack 100H
  .data
  .code
  
  call proc
  
  mov cx,5
  
  mov dx,0
  L1:
  mov bx,2
  add dx,bx
  mov ah,02h
  loop L1
  int 21
  endp
  </code></pre>