Sketch the flowchart for CASE
structure below.
name "question_6"
.model small
org 100h
main proc
start: mov dx, offset msg
mov ah, 9
int 21h
mov ah, 1
int 21h
cmp al, '0'
jb stop
cmp al, '9'
ja stop
cmp al, '5'
jb test2
ja test3
mov dx, offset msg1
jmp print
test2: mov dx, offset msg2
jmp print
test3: mov dx, offset msg3
print: mov ah, 9
int 21h
jmp start
stop:
msg db "enter a number or any other
character to exit: $"
msg1 db " is five! (equal)", 0Dh,0Ah, "$"
msg2 db " is below five!", 0Dh,0Ah, "$"
msg3 db " is above five!", 0Dh,0Ah, "$"
main endp
end main