flat assembler
Message board for the users of flat assembler.

Index > Main > Virtual at

Author
Thread Post new topic Reply to topic
wishmaster



Joined: 25 Aug 2004
Posts: 9
wishmaster 25 Aug 2004, 14:28
Hello, i am new at Assembler and FASM. I have a question, for what is the "virtual at" instruction ? Thanks for help Smile
Bye.
Post 25 Aug 2004, 14:28
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 25 Aug 2004, 18:14
first you need to understand what is "virtual" for. It doesn't really define data, it only defines symbols (labels, numeric constants) as if the data was defined. For example
Code:
virtual
  x1 = 1
  x2 db 5
  x3 db 'aaaaaaaa',0
end virtual
    

only defines symbols x1, x2 and x3, no data is defined.

"at" behind "virtual" just allows you to change origin of labels, "virtual at XXX" is same as
Code:
  virtual
  org XXX
    

or
Code:
  virtual
  $ = XXX
    
Post 25 Aug 2004, 18:14
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.