Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jLeslie

mov DWORD PTR [ebp-36], edx

This topic is 6415 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
It''s moving the contents of a register into a memory location. I''m guessing a local variable by the looks of it.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!