Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0B16

Opcode Database

0B16

DescriptionPerforms a logical shift to left. Each bit of the value moves n positions to the left, the new bits on the right will be disabled. Excess on the left will be discarded.

It can be used for integer multiplication of a number by the power of two.
Parameters (v2)1) Integer (INT)
2) Integer (INT)
3) (Returned) Integer (INT)
Gamessa
CategoryIntOperations
San Andreas
sascm.ini0B16=3,bitwise_shl %1d% shl %2d% store_to %3d%
Example0B16: bitwise_shl 0@ shl 8 store_to 0@
Command NameBITWISE_SHL

<< 0B15

0B20 >>