flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Should a logical xor operator be added to Fasm? "^" | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
Total Votes : 27 |
Author |
|
edfed
sorry but ^ symbol is "at the power of" no?
mov eax,2^32-1 can be a good usage of ^ instead of mov eax,0ffffffffh no? me i vote yes xor mnenonic is not a real torture for me |
|||
![]() |
|
LocoDelAssembly
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". |
|||
![]() |
|
LocoDelAssembly
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. |
|||
![]() |
|
edfed
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! |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.