flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > why can't i write my own align macro?

Author
Thread Post new topic Reply to topic
ravenX



Joined: 01 Oct 2005
Posts: 7
ravenX
I wrote something like this
rb 3-($+3) mod 4
as written in FASM manual and I've got an error!
Post 01 Oct 2005, 18:16
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7751
Location: Kraków, Poland
Tomasz Grysztar
See the FAQ, answer for: "Why do I get "invalid use of symbol" error when assembling PE or object file?".
Post 01 Oct 2005, 19:02
View user's profile Send private message Visit poster's website Reply with quote
ravenX



Joined: 01 Oct 2005
Posts: 7
ravenX
when i have relocatable pe(dll)
[
virtual
align 4
a = $-$$
end virtual
db a dup 0
]
seems to work

but i still can't see why there is two suggested
align macro variants in manual and only one is suitable
for all cases.
Post 02 Oct 2005, 10:09
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7751
Location: Kraków, Poland
Tomasz Grysztar
The "align" macro in the section 2.3.3 is just an example macroinstruction and no suggested aligning method, and it is clearly said to be the macro for "data alignment for binary output format".
Post 02 Oct 2005, 10:12
View user's profile Send private message Visit poster's website Reply with quote
ravenX



Joined: 01 Oct 2005
Posts: 7
ravenX
Thanks a lot
Post 02 Oct 2005, 10:14
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.