Question: . 3 8 6 model flat, stcicall . stack 4 0 9 6 ExitProcess PROTO, dwExitCode:DWORD data aName BYTE ABCDEFGHIJKLMNO, 0 nameSize aName ) -

.386
model flat, stcicall
. stack 4096
ExitProcess PROTO, dwExitCode:DWORD
data
aName BYTE "ABCDEFGHIJKLMNO", 0
nameSize aName)-1
. code
main PROC
; Push the name on the stack.
mov ecx, namesize
mov esi, 0
L1: movzx eax, aName[esi] ; get character
push eax ; push on stack
inc esi
loop L1
; Pop the name from the stack, in reverse,
; and store in the aName array.
mov ecx, nameSize
mov esi, 0
L2: pop eax ; get character
mov aName[esi],al ; store in string
inc esi
loop L 2
mov edx, OFFSET aName
INVOKE ExitProcess, edx
main ENDP
END main ; specify the program's entry point.
Using Visual Studio , write a procedure that displays prompt by writing a null- terminated string . Modify the program in the picture so the user can input a string up to 50 characters.
 .386 model flat, stcicall . stack 4096 ExitProcess PROTO, dwExitCode:DWORD data

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!