Bitwise Command

From WikiManual
Revision as of 19:27, 23 December 2005 by Ollj (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bitwise Command:

~ Complement
& AND
| OR
^ XOR
++ increment stack value
-- deincrement stack value
- negate stack value
<< bit shift left
>> bit shift right

Bitwise Commands

Bitwise commands take the latest value of the stack and work with it bit for bit.

You could use them to use a variable as multiple booleans instead of one integer.

You can use them to read/write the sign of one integer.

You can use them ro randomize variables.

Energy costs:

Since version: 2.4 you can set an Energy cotst per bitwise command instance. default is 0.