Question: Assembly Language for x86 Processors project:In this project, write a PROC named STRREV (STRing REVerse) that queries the user to enter a string (use STRQRY)

Assembly Language for x86 Processors project:In this project, write a PROC named STRREV (STRing REVerse) that queries the user to enter a string (use STRQRY) and reverses the string in place without using additional declared storage or the runtime stack. Display the result with an appropriate message. Remember, no declared storage or registers can be used in a global manner.

Here is a reference program:

TITLE project4_csc410

INCLUDE Irvine32.inc

.DATA

Prompt BYTE "Enter your name: ", 0

message BYTE "String Length: ", 0

frstName BYTE 50 DUP(0)

counter BYTE 0

.CODE

STRQRY proc

push ebp

mov ebp, esp

push edx

push ecx

mov edx, [ebp + 8]

call WriteString

mov edx,offset frstName

mov ecx, 50

call ReadString

mov eax,offset frstName

pop ecx

pop edx

pop ebp

ret 4

STRQRY ENDP

STRLEN PROC

PUSH EBP

MOV EBP, ESP

PUSH EDX

PUSH ECX

MOV EDX, [EBP+8]

MOV EAX, 0

LOOPER:

MOV ECX, [EDX+EAX]

CMP ECX, 0

JE DONE

INC EAX

JMP LOOPER

DONE:

CALL WRITEDEC

POP ECX

POP EDX

POP EBP

RET

STRLEN ENDP

MAIN PROC

push offset prompt

call STRQRY

mov edx, OFFSET message

call writeString

push offset frstName

call STRLEN

EXIT

MAIN ENDP

END MAIN

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!