flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Base address symbol

Author
Thread Post new topic Reply to topic
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 25 Mar 2007, 11:00
Is there in FASM (or planned to be) a symbol that represent/equal to default base addess? To not to write 400000h manually in case... as like we have $, $$ and finally RVA operator but we have no thing that it is relative to)
[edited]
And say if we write AT in FORMAT directive that symbol would be equal to new base.

_________________
Any offers?
Post 25 Mar 2007, 11:00
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Mar 2007, 11:33
Code:
BASE_ADDRESS=400000h
format PE at BASE_ADDRESS
    

works quite well IMO
Post 25 Mar 2007, 11:33
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan 25 Mar 2007, 12:03
Yep, it works but i thought of internal support. actually it's not so necessary but could be handy...
Post 25 Mar 2007, 12:03
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.