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

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions