flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Interprete [ as +! :-)

Author
Thread Post new topic Reply to topic
rocketsoft



Joined: 26 Jan 2010
Posts: 189
rocketsoft
Allows all known mem-ref syntaxes!
Gives smoooth parsing
Post 29 Dec 2014, 08:58
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7721
Location: Kraków, Poland
Tomasz Grysztar
Opinion may vary whether the use of square brackets as pointer addition operator in C is a good design or not - at least there it has some consistency. But applying it to assembly language resulted in a dubious syntax which some people considered confusing and ugly. Probably for this reason TASM got rid of this feature in its "ideal" mode. fasm, as it was inspired by TASM's "ideal", followed the same route and used square brackets in a single and unequivocal role of a pointer operator (I think NASM did the same?).
Post 29 Dec 2014, 11:45
View user's profile Send private message Visit poster's website Reply with quote
rocketsoft



Joined: 26 Jan 2010
Posts: 189
rocketsoft
Any chance of a "hippy_mode" directive?
Post 29 Dec 2014, 12:20
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:  


< 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.

Powered by rwasa.