title: Read in Integers and display in reverse order
body: <p>I need to have the user input 5 integers and then push them into a stack, then pop them out in order to display them in reverse order i.e 1,2,3,4,5 is inputted it should display 5 4 3 2 1.  Currently it is just displaying +1.  What is the problem ?</p>
  
  <pre><code>INCLUDE Irvine32.inc
  .data
     aName DWORD 5 DUP (?)
     nameSize = 5
  .code
  
  main PROC
  
     mov  edx, OFFSET aName
     mov  ecx, 4          ;buffer size - 1
  
  
     ; Push the name on the stack.
     mov ecx,nameSize
     mov esi,0
     L1: 
       Call ReadInt
       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],edx;
       inc esi
     Loop L2
     ; Display the name.
     mov edx,OFFSET aName
     call WriteInt
     call Crlf
     exit
     main ENDP
  END main
  </code></pre>