title: Compare floats in assembly language [MASM] using Dosbox
body: <p>I just started to learn Assembly language, so I wrote a program to compare two integer numbers, using Dosbox. Now I want to update the program so it compares float numbers, but there's not much on the internet that could help me understand the difference.
  This is the code I wrote:</p>
  <pre><code>    dosseg
  .model small
  .stack 100h
  .data
       msg1 db 10,13,&quot;Enter first Number ...$&quot;
       msg2 db 10,13, &quot;Enter second Number ...$&quot;
       msg3 db 10,13, &quot;Numbers are equal ...$&quot;
       msg4 db 10,13, &quot;Numbers are not equal ...$&quot;
  
  .code
  main proc
       mov ax, @data
       mov ds,ax
  
       mov dx,offset msg1
       mov ah,9
       int 21h
  
       mov ah,1
       int 21h
       mov cl,al
       mov dx, offset msg2
       mov ah,9
       int 21h
  
       mov ah,1
       int 21h
       mov dl,al
       cmp dl, cl
  
       je l1
       mov dx,offset msg4
       mov ah,9
       int 21h
  
             jmp exit
           l1:
  
           mov dx, offset msg3
           mov ah,9
           int 21h
  
           exit:
          mov ah,4ch
          int 21h
  
  
  
  
  main endp
  end main
  </code></pre>