Hello Guys
I want to make an assembly program that get 2 inputs and compare between them if equal or not and if not I want to say which number is the maximum and which one is the minimum
I did the Equal part , I need help with the maximum and minimum part, I cant get its Idea year im still a nOOb with assembly
Best Regards
.MODEL SMALL
.DATA
V3 DB 'EQUAL$'
V4 DB 'NOTEQAUL$'
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV AH,01H
INT 21H
MOV DL,AL
INT 21H
CMP AL,DL
JNE NOEQUAL
MOV AH,09H
LEA DX,V3
INT 21H
JMP BYE
NOEQUAL:
MOV AH,09H
LEA DX,V4 ; LOAD EFECTIVE ADDRESS OF V4 IN DX
INT 21H
BYE:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN