mov DWORD PTR [ebp-36], edx
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.
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
*( (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
Popular Topics
Advertisement