Assembly program to input two numbers and check if they are equal, unequal, greater or lesser
If you are looking for a Assembly program to input two numbers and check if they are equal, unequal, greater or lesser or a assembly program to find the largest number between two numbers or how to check the numbers are equal or unequal You are at right place. Following is the complete program with comments as you can understand easily. Additionally, if you have any questions, you can comment below. ___________ Dosseg .model small .stack 100h .data MsgEq db 'Numbers are Equal $' MsgUneq db 'Numbers are Unequal and $' MsgGr db ' First Number is greater than second number $' MsgLs db ' First Number is lesser than second number $' .code main proc mov ax, @data mov ds, ax mov ah, 1 ; input first number int 21h mov bl, al ; saving first number to bl from al mov al, 1 ; input second number int 21h mov cl, al ; saving second number to cl from al L1: ...