mov DWORD PTR [ebp-36], edx

Started by
1 comment, last by jLeslie 23 years, 4 months ago
mov DWORD PTR [ebp-36], edx Can anyone tell me what this line of assembly is doing? My first guess would be its moving a pointer to a new memory location, like for a function call, but since I know nothing of assembly I thought I should check for sure.
Advertisement
It''s moving the contents of a register into a memory location. I''m guessing a local variable by the looks of it.
In C this would be

*( (DWORD *) ebp-36 ) = edx;

edx and ebp are registers. ebp is kinda of like a stack pointer. Usually if something is accessing ebp it''s going after a local variable or parameter. The value in edx could be just about anything.

-Mike

This topic is closed to new replies.

Advertisement