title: How to print fibonacci series in assembly?
body: <p>I have tried to get the fibonnacci series up to a given number. But won't print correctly.
  Here is my code. num is the given number.</p>
  
  <pre><code>proc getFibo
          mov al,num
  
          mov cl,0
          mov bl,1
  
          mov dl,cl
          add dl,48
          mov ah,02h
          int 21h
  
  
          getNext:
              mov dl,bl
              add dl,48
              mov ah,02h
              int 21h
  
              add cl,bl
  
              mov dl,cl
              add dl,48
              mov ah,02h
              int 21h
  
              add bl,cl
  
              mov cl,bl
              add bl,1
              cmp bl,num
              jl getNext
  
  
          ret
      endp
  </code></pre>
  
  <p>Someone help me please.Thanks in advance..!</p>