flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Local label starting with two dots (..)

Author
Thread Post new topic Reply to topic
jiminalabama



Joined: 16 Jun 2005
Posts: 1
jiminalabama 16 Jun 2005, 15:08
What will the following code in vid's excellent FASM PREPROCESSOR GUIDE be preprocessed to?

But names that start with two dots (..) do not change current global label, so in following case MyProc.a would be declared:

macro pushstr string
{
local ..behind
call ..behind
db string,0
..behind:
}
MyProc:
pushstr 'aaaa'
.a:
Post 16 Jun 2005, 15:08
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8392
Location: Kraków, Poland
Tomasz Grysztar 16 Jun 2005, 15:11
After preprocessing it will be something like:
Code:
MyProc:
call ..behind?00000000
db 'aaaa',0
..behind?00000000:
.a:    
Post 16 Jun 2005, 15:11
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.