flat assembler
Message board for the users of flat assembler.

Index > Main > local label in virtual block

Author
Thread Post new topic Reply to topic
slav



Joined: 21 Apr 2004
Posts: 5
Location: Spain
slav 21 Apr 2004, 22:08
Is there any way of defining a local label in a virtual block?
Post 21 Apr 2004, 22:08
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 22 Apr 2004, 08:36
slav: (good nick)
you define local label in virtual block just like as anywhere else.

Only difference between virtual block and normal code, is that no data defined in virtual block won't be really in destination file, only labels and constants will be defined.
for example
Code:
  virtual
    name dd 0
  end virtual
    

is same as
Code:
  label name dword
    

same with local labels,
Code:
  global:
  virtual
    .loc:
  end virtual
    

is same as
Code:
  global:
  .loc:
    


I think you wanted to declare label local to virtual block (eg it can be used in virtual block, but not elsewhere). If so, then what do you need it for? I think there will be a better way to do it.
Post 22 Apr 2004, 08:36
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.