Made to Order Software Corporation Logo

Shift Left

SWF Action
Action Category: 
Arithmetic
Action Details: 
0
Action Identifier: 
99
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

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

The second integer will be masked and only the number of bits considered useful will be used to do the shift (most certainly 5 or 6 bits.)

This action ignores the sign of the number being shifted (it gets lost.)

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.