Difference between revisions of "Shift right"

From WikiManual
Jump to: navigation, search
(New page: Picks the last two numbers in the stack and shifts right the first one's bits the amount specified by the second one. Shifting 1 by x returns zero unless x is 0. == Possible uses == -1...)
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Picks the last two numbers in the stack and shifts right the first one's bits the amount specified by the second one.
+
Divides the value on top of the integer stack by 2 using binary logic.
 
 
Shifting 1 by x returns zero unless x is 0.
 
 
 
== Possible uses ==
 
 
 
-1 .shoot 1 *.refeye *.myeye sub ^ mult store
 
 
 
Will shoot whenever *.refeye and *.myeye are not equal.
 
 
 
100 .aimsx 1 *.eye5 ^ mult store
 
 
 
Will turn only when there isn't anything on focus.
 

Latest revision as of 11:10, 21 December 2016

Divides the value on top of the integer stack by 2 using binary logic.