flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Request about syntax

Author
Thread Post new topic Reply to topic
webmanix



Joined: 06 Apr 2010
Posts: 1
webmanix
Im sorry, i know it should be documented somewhere, but i just cant find, i read all docs in fasm site and i just cant find where the syntax is, the only reference i saw on the site was as "Pure interpreter".

Can some1 provide me fasm's syntax? (Things like "store", "load" etc...)
Post 06 Apr 2010, 17:44
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler
http://flatassembler.net/docs.php?article=manual#2.2.4

Fasm Docs wrote:

Both load and store directives are limited to operate on places in
current addressing space. The $$ symbol is always equal to the base address
of current addressing space, and the $ symbol is the address of current
position in that addressing space, therefore these two values define limits
of the area, where load and store can operate.


Combining the load and store directives allows to do things like encoding
some of the already generated code. For example to encode the whole code
generated in current addressing space you can use such block of directives:
Code:
    repeat $-$$
        load a byte from $$+%-1
        store byte a xor c at $$+%-1
    end repeat
    

Post 06 Apr 2010, 22:21
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.