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:
dosseg
.model small
.stack 100h
.data
msg1 db 10,13,"Enter first Number ...$"
msg2 db 10,13, "Enter second Number ...$"
msg3 db 10,13, "Numbers are equal ...$"
msg4 db 10,13, "Numbers are not equal ...$"
.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