Skip to content

Bitwise Operations ​

These instructions shift or rotate scalar integer values.

OpcodeArgumentsOperands (stack)Description
shltypevalue, countReplaces the operands with value shifted left by count; type must be sht, int, lng, or oct.
shrtypevalue, countReplaces the operands with value shifted right by count; type must be sht, int, lng, or oct.
roltypevalue, countReplaces the operands with value rotated left by count; type must be sht, int, lng, or oct.
rortypevalue, countReplaces the operands with value rotated right by count; type must be sht, int, lng, or oct.