flat assembler
Message board for the users of flat assembler.

flat assembler > Macroinstructions > [fasmg] performance and optimisation

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6901
Location: Kraków, Poland
_shura wrote:
Currently »#(« always result in an invalid instruction, argument or expression
This is not exactly true, the following is a valid construction and assembles correctly with fasmg (and even with fasm 1 when used inside a macro):
Code:
db#(1)    


_shura wrote:
Is the philosophy of fasmg more important than writing readable code?
The philosophy of fasmg is that its simple building blocks should allow you to re-define and alter almost everything in the language and thus be able to use any syntax that you deem the most readable or useful.

_shura wrote:
What about allowing to defining the struc »=«, so I can do all of my syntactical sugar myself without having it written in fasmg-source: (...)
You have the "struc ?" that serves this purpose:
Code:
struc (symbol) ? definition&
        match [index] == value, definition
                repeat 1, i:index
                        symbol#i = value
                end repeat
        else
                symbol definition
        end match
end struc

abc[1+2] = 'test'

display abc3    
Post 19 Oct 2017, 21:22
View user's profile Send private message Visit poster's website Reply with quote
_shura



Joined: 22 May 2015
Posts: 60
wait, what? This is possible?
Post 19 Oct 2017, 21:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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-2018, Tomasz Grysztar.

Powered by rwasa.