flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Logical xor operator for Fasm needed? With "^" cha Goto page Previous 1, 2 |
Should a logical xor operator be added to Fasm? "^" | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
Total Votes : 27 |
Author |
|
LocoDelAssembly 09 Oct 2007, 15:25
http://en.wikipedia.org/wiki/Operators_in_C_and_C++
But yes, the same symbol is used to denote "at the power of". The problem with XOR, is that it works with numerical operators, you can't do "(a = 5) xor (b = 7)", but the hypotethical "(a = 5) ^ (b = 7)" would work. MCD's proposal was to add logical XOR, not numerical, using the same symbol that in C performs numerical XOR. As an example of usage of this symbol, the "if (~defined theXorParty.multipleUses & setup eq) | (defined theXorParty.multipleUses & ~setup eq)" that you can find on this thread, could be written as "if defined theXorParty.multipleUses ^ setup eq". |
|||
09 Oct 2007, 15:25 |
|
edfed 13 Oct 2007, 12:38
in electronics, xor is a cross in a circle +O
and is a dot . or is a plus + so why do you all want use the ^ symbol? if this symbol is implemented in fasm, i hope it will be only for power of the xor symbol can be % or # but not ^ # because it shows the windowing of the xor function and i don't code in C i have a headake with the other languages than asm the number of operators and mnemonics size are too much shity for me
|
||||||||||
13 Oct 2007, 12:38 |
|
LocoDelAssembly 13 Oct 2007, 15:59
Code: the xor symbol can be % or # Those are used already. Anyway this topic isn't worth discussing anymore since obviously it will not be implemented. Not in official fasm at least. |
|||
13 Oct 2007, 15:59 |
|
edfed 17 Oct 2007, 00:10
i don't use them in fasm
never so for me it's ok for %,#,§ or ° just "xor" is a simple solution cause it's explicit and it works! |
|||
17 Oct 2007, 00:10 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.