flat assembler
Message board for the users of flat assembler.

Index > Main > Eh ? What I'm doing wrong ? (Playing with stack)

Author
Thread Post new topic Reply to topic
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 04 Mar 2011, 20:21
Hello everyone! I have problem about stack and I'm getting mad Evil or Very Mad
Trying to move stack offset to edi register but I fail.. why ? Sad
Code shows everything..
Code:
proc blabla
     local buf: rb 12
     mov edi,buf    
Post 04 Mar 2011, 20:21
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 04 Mar 2011, 21:00
Stack offset is not a number, it is "ebp - something". Actual definition of "buf" is "label buf at ebp-12".
Post 04 Mar 2011, 21:00
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 04 Mar 2011, 21:24
vid
Thank you Smile
Post 04 Mar 2011, 21:24
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 04 Mar 2011, 21:51
Overflowz wrote:
Trying to move stack offset to edi register but I fail.. why ?
Code:
proc blabla
     local buf: rb 12
     mov edi,buf    
vid wrote:
Stack offset is not a number, it is "ebp - something". Actual definition of "buf" is "label buf at ebp-12".

Or simply,
Code:
  lea edi, [buf]    

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 04 Mar 2011, 21:51
View user's profile Send private message Visit poster's website Reply with quote
Overflowz



Joined: 03 Sep 2010
Posts: 1046
Overflowz 09 Mar 2011, 19:09
Mike Gonta
Thank you.
Post 09 Mar 2011, 19:09
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.