flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > virtual at $

Author
Thread Post new topic Reply to topic
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 19 Feb 2004, 05:18
not sure what it does, from documentation I understand this is statement has no effect. I would like to do memcpy from virtual at 0 block to actual file (which I assume is virtual at $). I do something like:
Code:
orgpos = $
virtual at 0
    db "abc"
    count = $
    repeat count
        load char from %-1
        virtual at orgpos+%-1
            db char
        end virtual
    end repeat
end virtual    


This supposed to be equivalent of simply defining "db 'abc'". Possible?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 19 Feb 2004, 05:18
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 19 Feb 2004, 08:11
No. "virtual at $" if still virtual, it is not in actual file. Simply it is based to current offset.

Reagards
Post 19 Feb 2004, 08:11
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 19 Feb 2004, 14:24
So now way to do such memory copy?

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 19 Feb 2004, 14:24
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger 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.