title: Reading 2 numbers in assembly and storing it in a variable
body: <p>just to put it out there -I really did search and try to find an easy to understand tutorial but couldn't :/ .. I'm still kind of new to it.</p>
  
  <p>But what I'm struggling with is to input 2 numbers from the user and to store it in a variable . And then later compare it to a Maximum value. </p>
  
  <pre><code>output db 10,13, "Enter a number: $"
  asq dw 10,13, "$" ; ascii values for a new line
  stilltoimplement db 10,13, "Do calculations $"
  
  .code 
  
  jmp start 
  
      number db ?
      max db 14
  
  start:
      mov ax,@data 
      mov ds,ax
  
      mov ah,09 ;prints new line
      mov dx, offset output
      int 21h
  
      mov ah, 01 ;checks for key
      mov al, 01
      int 21h
      mov number, al
  
  
      cmp number,14
      jg start
      jl part2
  
  part2:
  
      mov ah,09
      mov dx,offset stilltoimplement
      int 21h
  
  ending:
      mov ah,4ch
      mov al,00
      int 21h ;End the program
  
  END
  </code></pre>