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
Post a Comment