; Pop the name from the stack, in reverse, ; and store in the aName array. mov ecx,nameSize mov esi,0 L2: рop eax mov aName[esi],al ; store in string ; get character inc esi Loop L2 exit main ENDP END...


Submit the program with
the addition of print command for each pop
operation (print each element from pop).


; Pop the name from the stack, in reverse,<br>; and store in the aName array.<br>mov ecx,nameSize<br>mov esi,0<br>L2:<br>рop eax<br>mov aName[esi],al ; store in string<br>; get character<br>inc esi<br>Loop L2<br>exit<br>main ENDP<br>END main<br>

Extracted text: ; Pop the name from the stack, in reverse, ; and store in the aName array. mov ecx,nameSize mov esi,0 L2: рop eax mov aName[esi],al ; store in string ; get character inc esi Loop L2 exit main ENDP END main
. data<br>aName BYTE

Extracted text: . data aName BYTE "Abraham Lincoln",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 on stack push eaх inc esi Loop L1

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here