Difference between revisions of "Valdec"

From WikiManual
Jump to: navigation, search
 
m
 
Line 3: Line 3:
 
Taking the top value of the stack as bits, subtracts one.  Underflow is ignored.
 
Taking the top value of the stack as bits, subtracts one.  Underflow is ignored.
  
for instance,
+
{{Bitwise Command}}
 +
 
 +
==Example:==
  
 
  -5 --
 
  -5 --
  
 
would place -4 on the stack.
 
would place -4 on the stack.

Latest revision as of 17:50, 31 January 2006

Deincrement Bit Value BINARY

Taking the top value of the stack as bits, subtracts one. Underflow is ignored.

Bitwise Command:

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

Example:

-5 --

would place -4 on the stack.