Print the month is june if press M and year is 2013 if press Y in assembly language

Bismillahir Rahmanir Rahim
 solution:

data segment 
year  db  "-The year is 2013. $" 
manth db "-The month is june. $"
ppp   db " Plz, Enter your choice (y/m) or (Y/M). $"
lll   db  "-You press wrong key. $"
charr db  ?
data ends
;solved by adhoa
stack segment
db 100 dup(0)
stack ends

;solved by furkan

code segment
assume cs:code, ds:data, ss:stack
start:
 mov ax, seg data
 mov ds, ax
 mov ax, seg stack
 mov ss, ax

 mov dx,offset ppp
 mov ah,09
     int 21h

 mov ah,01h
    int 21h
 mov charr,al
iff1:
 cmp al,'y'
 JNZ ifff
then1:
 mov dx, offset year
 JMP ENDIFF
ifff:
 cmp al,'Y'
 jnz iff2
thenn:
 jmp then1
iff2:
 CMP al,'m'
 JNZ ifff2
then2:
 mov dx, offset manth
 jmp ENDIFF
ifff2:
 cmp al,'M'
 jnz exitt
thenn2:
 jmp then2      
ENDIFF:
 mov ah,09
 int 21h
 JMP lool
exitt:
 mov dx,offset lll
 mov ah,09
 int 21h
lool:

 mov ax, 4c00h
 int 21h
code ends
end start

Socializer Widget By Blogger Yard
SOCIALIZE IT →
FOLLOW US →
SHARE IT →