Opcode Database

Latest Forum Activity

GTAG - Modding - Opcode Database - 0B15

Opcode Database

0B15

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

It can be used for integer division 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.ini0B15=3,bitwise_shr %1d% shr %2d% store_to %3d%
Example0B15: bitwise_shr 0@ shr 8 store_to 0@
Command NameBITWISE_SHR

<< 0B14

0B16 >>