Copying an array to the Stack Frame in Assembly Language -


Assume that I have a copy and an array, call it x on stack frame. And then display that stack frame on the screen before leaving the process. How do I copy that array to a stack frame? I came with this but it is not working

  .data x sdword 10, -10, 20, -20. Code start: mov esi, [ebp + 8] mov edi, [ebp + 12] mov ecx, [ebp + 20] mov edx, [ebp + 16]   

How to add array x to the stack frame using I'm not using Irwin or anything just .386 .MODEL flat, stdcall .. STACK 4096

I am using Microsoft Visual C ++

It is not clear whether you need to copy the content (i.e. 4 words), or just copy from ADDRESS. Either way, you make room for that frame, whatever you have to put in there, and then copy it the same way you copy memory-to-memory.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -