bitop
Compute bitwise operations (AND, OR, XOR, shifts, rotations) at 8/16/32/64-bit widths, displaying results in unsigned, signed, hex, octal, and binary formats.
Instructions
Programmer-mode bit ops: and or xor nand nor xnor not shl shr sar rol ror at width 8/16/32/64. Every result shows unsigned, signed (two's complement), hex, octal and binary. shr is logical (zero-fill); sar is arithmetic (sign-propagating) — 0x80 shr 1 = 0x40 (+64) but 0x80 sar 1 = 0xC0 (-64). A left shift that drops bits says OVERFLOW and shows the unbounded answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | No | ||
| op | Yes | ||
| width | No |