flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Probably dynamic formation of names macros?

Author
Thread Post new topic Reply to topic
pas



Joined: 16 Aug 2003
Posts: 17
Location: Russia
pas 16 Aug 2003, 17:23
I want dynamically to form a name macros. Approximately so:
macro chec [name]
{
forward

macro name#.zero
m_
xor eax,eax
_m
macro name#.move
m_
mov eax,ecx
_m
CheckName= CheckName+1
}
chec ches
Two macros should turn out
ches.zero
ches.move
The compiler gives out a mistake
error: invalid macro arguments.
Excuse me for mine bad English
Post 16 Aug 2003, 17:23
View user's profile Send private message Reply with quote
pas



Joined: 16 Aug 2003
Posts: 17
Location: Russia
pas 17 Aug 2003, 19:02
It works:
macro chec [name1]
{
forward
macro name1
m_
xor eax,eax
_m
common
}
chec lis,pis
..............
lis
pis

But it does not work:
macro chec [name1]
{
forward
macro name1#.zero
m_
xor eax,eax
_m
common
}
chec lis,pis
..............
lis
pis
Mistake of the compiler:
chec lis,pis
error: invalid macro arguments.
Post 17 Aug 2003, 19:02
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 23 Aug 2003, 18:12
It was a bug - when allowing inheritance of macro definitions in 1.48 version, I forgot to update some parts of source and that caused this bug. I've updated the 1.48 packages with the fix for this bug, since I still don't feel ready to release the 1.49 version.
Post 23 Aug 2003, 18:12
View user's profile Send private message Visit poster's website Reply with quote
pas



Joined: 16 Aug 2003
Posts: 17
Location: Russia
pas 23 Aug 2003, 20:05
Thank.
Post 23 Aug 2003, 20:05
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.