Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . What is the logic of the program? What does it do ? Explain in details. 2 . What will be displayed on the

1. What is the logic of the program? What does it do? Explain in details.
2. What will be displayed on the screen ?
.model small
.386
.stack 100h
.data
nono db 8
c db 0
bsd db 0
x db "Enter anu Key ",13,10,"$"
.code
main proc
mov AX,@data
mov ds, ax
mov dx,offset x
call gssm
call y
mov bsd, al
mov c,0
mm:
shr bsd,1
jc short jjj
inc c
jjj:
dec nono
jnz mm
mov dl, c
shr c,1
jc short start1
call z
start1:
mov ax,4c00h
int 21h
y proc
uuu:
mov ah,1
int 21h
cmp al,58
js uuu
cmp al,65
jns uuu
ret
y endp
z proc
mov ah,6
add dl,48
int 21h
ret
z endp
gssm proc
mov ah,9
int 21h
ret
gssm endp
main endp
end main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions