Escolar Documentos
Profissional Documentos
Cultura Documentos
5 Write an assembly language program to find if the given number is even or odd
number
DATA SEGMENT
MSG1 DB 10,13,’ENTER NUMBER HERE :- $’
MSG2 DB 10,13,’ENTERED VALUE IS EVEN$’
MSG3 DB 10,13,’ENTERED VALUE IS ODD$’
DATA ENDS
DISPLAY MSG1
MOV AH,1
INT 21H
MOV AH,0
EVEN:
DISPLAY MSG2
JMP DONE
ODD:
DISPLAY MSG3
DONE:
MOV AH,4CH
INT 21H
CODE ENDS
END START