flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > limit for local labels

Author
Thread Post new topic Reply to topic
zenek_tm



Joined: 21 Mar 2004
Posts: 33
Location: Poland
zenek_tm 09 Apr 2004, 23:19
How many times can I call a specific macro with local labels before fasm refuses to compile further?
Post 09 Apr 2004, 23:19
View user's profile Send private message Reply with quote
zenek_tm



Joined: 21 Mar 2004
Posts: 33
Location: Poland
zenek_tm 11 Apr 2004, 21:33
Well had to test it myself Smile . I don't know if I explained exactly what I want. Well I generally wanted to know what is the format of local labels in macros generated by fasm. I have tested it and I'm completely satisfied.
Once again sorry if I was unclear in my question.
Post 11 Apr 2004, 21:33
View user's profile Send private message Reply with quote
uri



Joined: 09 Apr 2004
Posts: 43
Location: L'viv, Ukraine
uri 05 May 2004, 12:59
Code:
      macro pushstr string
      {
        local behind
        call behind
        db string,0
        behind:
      }
      pushstr 'aaaaa'
      pushstr 'bbbbbbbb'
      call something
    

this won't cause any problems. This is done by replacing "behind" with
"behind?XXXXXXXX" where "XXXXXXXX" is some hexadecimal number generated by
preprocessor. Last example can be for example preprocessed to
Code:
      call behind?00000001
      db 'aaaaa',0
      behind?00000001:
      call behind?00000002
      db 'bbbbbbbb',0
      behind?00000002:
      call something
    

(c) vid
Post 05 May 2004, 12:59
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 05 May 2004, 19:11
glad somebody reads that Smile
Post 05 May 2004, 19:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
zenek_tm



Joined: 21 Mar 2004
Posts: 33
Location: Poland
zenek_tm 05 May 2004, 20:29
Well I guess all I wanted to know what is the format for local labels. Since it's label?xxxxxxxx I am fully satisfied because that gives about 2^32 different local labels Smile
Post 05 May 2004, 20:29
View user's profile Send private message Reply with quote
uri



Joined: 09 Apr 2004
Posts: 43
Location: L'viv, Ukraine
uri 06 May 2004, 05:00
vid
glad somebody reads that
thanks for this tutorial. it's very good job.
Post 06 May 2004, 05:00
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 06 May 2004, 18:57
thx
Post 06 May 2004, 18:57
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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.