flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > about mystruc ?

Author
Thread Post new topic Reply to topic
zjlcc



Joined: 23 Jul 2003
Posts: 32
Location: china
zjlcc 06 May 2004, 16:09
i write a macro:

_m fix {
m_ fix }

macro myStruc name
{
struc name
_m
virtual at 0
}

macro endm
{
end virtual
m_
}

and use it:

myStruc Test
.aa db ?
.bb dw 1
.Size =$ - .aa
endm

mm test

............

Sad but ,it have error

error message:unexpected end of file.
Post 06 May 2004, 16:09
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 06 May 2004, 16:16
After you opened structure definition with { character in the myStruc macro, everything is processed as the contents of the macroinstruction, so no macroinstructions are processed. You can use some "fix"-defined constant instead (like "endm fix }"), but nothing else will work.
Post 06 May 2004, 16:16
View user's profile Send private message Visit poster's website Reply with quote
zjlcc



Joined: 23 Jul 2003
Posts: 32
Location: china
zjlcc 18 May 2004, 07:13
thank for your replay!

Smile
Post 18 May 2004, 07:13
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.