Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

Shift Operations

Shift operations include Logical Left, Logical Right, Arithmetic Left, Arithmetic Right, Rotate Left and Rotate Right. All operations require an integer operand that specify the number of bits to shift or rotate. Arithmetic shift differs from logical shift in that it saves the sign of the operand. Only right logical and arithmetic shift perform differently and only if the value is negative.

Shift Operation Window

When you execute a shift operation, the following dialog appears:

Shift Operation Window

The operation you executed is automatically selected, but you can change it if you like.

Enter the number of bits to shift or rotate.

Alignment

Non-byte size operands are always aligned.

Scripting

Scripts may execute bitwise operations using the IDocumentView.shiftOpAsync method.