Difference between revisions of "Bitwise Command"

From WikiManual
Jump to: navigation, search
(No difference)

Revision as of 20:27, 23 December 2005

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.