FireEmblemUniverse / ColorzCore

A rewriting of Core.exe for EA.
GNU General Public License v3.0
7 stars 7 forks source link

Suggestion: unary not operator #42

Closed StanHash closed 19 hours ago

StanHash commented 5 years ago

Would flip bits

Hypothetical usage example:

scIgnoreAllKeysButA:
    IGNORE_KEYS (KeyAll & (~KeyButtonA))
    ENDA
Crazycolorz5 commented 5 years ago

Unary operator is kinda gross parsing wise but I guess it makes sense to have?

Workaround: #define Not(x) "(x^0xFFFFFFFF)" (I think we have xor? If not it IS buildable from and and or...)