please correct mistake my program is not working File Edit l
please correct mistake
my program is not working
File Edit lua dx, int 21h mov ah, 1 int 21h mov cl ,al sub cl ,30h mov al ,cl mov bl,2 div bl mov dl,al cmp dl,\'0\' Je even jne odd even lea dx,b mov ah,9 int 21h jmp exit odd lea dx,c mov ah,9 F1 Heln Solution
DATA SEGMENT
X DW 27H
MSG1 DB 19,13,\'NUMBER IS EVEN$\'
MSG2 DB 10,13,\'NUMBER IS ODD$\'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,X
TEST AX,01H
JNZ EXIT
LEA DX,MSG1
MOV AH,09H
INT 21H
JMP LAST
MOV BL,2
DIV BL
CMP AH,0H
JNZ EXIT
Declare it is Even number.
EXIT: LEA DX,MSG2 ;Declare it is Odd number.
MOV AH,09H
INT 21H
LAST: MOV AH,4CH
INT 21H
CODE ENDS
END START
