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.)