Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercises Q 1 ) Write an assembler code to reverse string x in order; use LODSB and STOSB strings; where x DB HELLO WORLD' x
Exercises
Q Write an assembler code to reverse string in order; use LODSB and STOSB strings; where DB HELLO WORLD'
x DB 'HELLO WORLD'
y DB Duo
Q Write an assembler codes to scan string for character ; replacing it by space.
DB
Q write an assembler codes to find factorial of values in memory locations; storing the result into Y memory locations; call a procedure to find factorial of numbers in ; where :
Q Write a sequence of instructions using LODSB and STOSB that copy each alphabet from X string to Y string, converting it to lowercase Note: setting bit in an uppercase character will convert it to lowercase
X DB 'ABCDEFGHI'
Y DB LENGTHOF X DUP
The value of after executing the following code is:
X DB
Y DB
MOV CX
L: CALL SUM
LOOP L
MOV Y AL
HLT
SUM PROC
MOV AH X
ADD AL AH
RET
SUM ENDP
What is the value of after execution the following codes?
STR DB "ABCDE"
MOV DI OFFSET STR
MOV CX
MOV ALC
REPNE SCASB
What is the value of after execution the following codes?
X DB "ABCDE"
Y DB "ABHDE"
MOV SIOFFSET Y
MOV DIOFFSET X
MOV CX
REPE CMPSB
LODSB
The values of array after executing the following code is:
'ASSEMBLY'
DUP
MOV OFFSET
MOV OFFSET
MOV
REP MOVSB
MOV
STOSB
The value of after executing the following code is:
ARRAY
MOV
MOV
MOV OFFSET ARRAY
: ADC
ADD
LOOP
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started