Made to Order Software Corporation Logo

Shift Right Unsigned

SWF Action
Action Category: 
Arithmetic
Action Details: 
0
Action Identifier: 
101
Action Structure: 
<n.a.>
Action Length: 
0 byte(s)
Action Stack: 
pop 2 (i), push 1 (i)
Action Operation: 
i1 := pop();
i2 := pop();
r := i2 >>> i1;
push(r);
Action Flash Version: 
5
See Also: 

Pop two integers, shift the 2nd unsigned integer by the number of bits specified by the first integer and push the result back on the stack.

To shift a signed integer to the right, use the Shift Right action instead.

This action will transform all the input numbers to positive numbers (as long as the shift is at least 1.)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Syndicate content