flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > is there new assume macro available with FASM 151?

Author
Thread Post new topic Reply to topic
hume



Joined: 08 Jul 2003
Posts: 4
Location: China
hume 10 Feb 2004, 03:12
an older version gave by Privalov will not work:

macro assume reg,stru
{
local undefined
virtual at reg
reg equ undefined
reg stru
restore reg
end virtual
}


is there an elegant solution to this fuctionality?
Post 10 Feb 2004, 03:12
View user's profile Send private message MSN Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 10 Feb 2004, 10:35
Retry it, I hope that it maybe work normally. And others, the assume syntax doesn't fit the fasm complier, because the fasm complier doesn't support cutomer defined pointer is be converted another types feature.

Code:
macro     .assume ptr,reg,str
{
       virtual at reg
      ptr     str
 end     virtual
}    
Post 10 Feb 2004, 10:35
View user's profile Send private message MSN Messenger Reply with quote
Bitdog



Joined: 18 Jan 2004
Posts: 97
Bitdog 11 Feb 2004, 09:42
I assembled an .asm with DOS Fasm 1.51 that had
align 16
in it, but I forgot to include the align macro
and it assembled,
but ignored the align 16
where DOS Fasm 1.49 gave me an line error so I could fix it......
Is it just me screwing up,
is it something new I don't know about,
er a bug.....?
Post 11 Feb 2004, 09:42
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 11 Feb 2004, 11:42
Since 1.50 fasm has an internal ALIGN directive.
Post 11 Feb 2004, 11:42
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 11 Feb 2004, 13:17
Privalov wrote:
Since 1.50 fasm has an internal ALIGN directive.


Why?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 11 Feb 2004, 13:17
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8353
Location: Kraków, Poland
Tomasz Grysztar 11 Feb 2004, 21:54
Mainly for the object output formats, where the proper alignment was impossible to implement with just macros.
Also ALIGN directive fills the alignment space with NOPs, while still keeping it marked as uninitialized data - which is also impossible with macros.
Post 11 Feb 2004, 21:54
View user's profile Send private message Visit poster's website 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.