title: Printing fibonacci number in TASM assembly
body: <p>In university we started learning TASM assembly language. The point is, I need help because I'm completely lost on my assignment. I need to scan a number from keyboard and print fibonacci's n-number. Example: you type in 6, program prints out 8. </p>
  
  <p>Here's my unfinished code:</p>
  
  <pre><code>.model small
  .stack 100h
  
  .data 
      number db 255
  
  .code
  start:
      mov dx, @data
      mov ds, dx
      mov al, 0
      mov bl, 1
  
  .readline:
      mov ah, 0Ah
      mov dx, offset number
      mov cx, dx;
      int 21h
  
  .fibonacci:
      add al, bl
      mov dl, al
      mov al, bl
      mov bl, dl
  
      loop .fibonacci
      int 21h
  .writeln
      mov ah, 9
      mov dx, dl
      int 21h
  
  
  end start   
  </code></pre>
  
  <p>After this, I just don't know what should I do or if there are any mistakes made. Could anyone give me advice what I need to do next?</p>