Answered step by step
Verified Expert Solution
Link Copied!

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
Q1) Write an assembler code to reverse string x in order; use LODSB and STOSB strings; where x DB HELLO WORLD'
x DB 'HELLO WORLD'
y DB 11Duo(?)
Q2) Write an assembler codes to scan string x for * character ; replacing it by space.
X DB'ABC**+GFDK****KLM'
Q3) write an assembler codes to find factorial of values in x memory locations; storing the result into Y memory locations; call a procedure to find factorial of numbers in x; where :
Q4) 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 5 in an uppercase character will convert it to lowercase
The value of Y after executing the following code is:
xDB4
Y DB?
MOV CX,2
L: CALL SUM
LOOP L
MOV Y, AL
HLT
SUM PROC
MOV AH, X
ADD AL, AH
RET
SUM ENDP
Y=
What is the value of Cx after execution the following codes?
STR DB "ABCDE"
MOV DI, OFFSET STR
MOV CX,5
image text in transcribed

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

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions