Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for Assembly Language: x86 how can I modify this so that it will output the string in reverse? the current output is: Enter

This is for Assembly Language: x86

image text in transcribed

how can I modify this so that it will output the string in reverse?

the current output is:

Enter a string

hello

h

e

l

l

o

I want the output to be:

Enter a string

hello

o

l

l

e

h

data prompt BYTE "Enter a string", 0dh, Oah, 0 text BYTE 101 DUP?) code main proc mov edx, OFFSET prompt call WriteString mov edx, OFFSET text mov ecx, 100 call ReadString mov ebx, e mov edx, OFFSET text call StrLength mov ecxeax L1: mov al, text[ebx] call WriteChar call Crlf inc eb>x loop L1 invoke ExitProcess,0 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_2

Step: 3

blur-text-image_3

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions