here's what i ve done so far can anyone please check for the error i made cause the output is wrong:
.model small
.stack 100h
.data
disp db "Enter Choice:$"
disp1 db "a-IT22A",0ah,0dh,"$"
disp2 db "b-IT22B",0ah,0dh,"$"
disp3 db "c-IT22C",0ah,0dh,"$"
disp4 db "Choose Behaviour Level:$"
disp5 db "1-Excellent",0ah,0dh,"$"
disp6 db "2-Normal",0ah,0dh,"$"
disp7 db "3-Uncomfortable",0ah,0dh,"$"
disp8 db "Wrong Entry, Please Repeat",0ah,0dh,"$"
.code
start:
again:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp1
int 21h
mov ah, 9h
lea dx, disp2
int 21h
mov ah, 9h
lea dx, disp3
int 21h
mov ah, 9h
lea dx, disp
int 21h
mov ah, 1h
int 21h
mov bl, al
cmp bl, 'a'
je choicea
mov bh, al
cmp bh, 'b'
je choiceb
mov dh, al
cmp dh, 'c'
je choicec
jmp again
choicea:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp1
int 21h
choiceb:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp2
int 21h
choicec:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp3
int 21h
ulit:
mov ah, 9h
lea dx, disp5
int 21h
mov ah, 9h
lea dx, disp6
int 21h
mov ah, 9h
lea dx, disp7
int 21h
mov ah,9h
lea dx, disp4
int 21h
mov ah, 1h
int 21h
mov ch, al
cmp ch,'1'
je exe
mov ah, al
cmp ah, '2'
je nor
mov cl, al
cmp cl, '3'
je uncom
jmp ulit
exe:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp5
int 21h
nor:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp6
int 21h
uncom:
mov ax, @data
mov ds, ax
mov ah, 9h
lea dx, disp7
int 21h
mov ah, 4ch
int 21h
end start