flat assembler
Message board for the users of flat assembler.

Index > Main > Getting the address of local variable

Author
Thread Post new topic Reply to topic
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
How do I get the address of a local proc variable? I use

Code:
addr variable    


in invoke, but

Code:
mov esi,addr variable    


is not liked by the compiler.

_________________
This is a block of text that can be added to posts you make.
Post 30 Apr 2010, 15:42
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
lea esi, [variable]
Post 30 Apr 2010, 15:48
View user's profile Send private message Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Tried "manual lea", but I probably missed the [].Thanks.
Post 30 Apr 2010, 16:05
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.