Operations Catalog
Select bitwise operations or CS2100 teaching presets.
&AND (Bitwise Mask)Yields 1 only where both operands have 1.
|OR (Bitwise Set)Yields 1 where either operand has 1.
^XOR (Bitwise Toggle)Yields 1 where bits differ (toggles masked bits).
~NOT (One’s Complement)Inverts every bit across the word width.
<<SLL (Logical Left Shift)Shifts bits left by k, discards MSBs, fills zeros on right.
>>SRL (Logical Right Shift)Shifts bits right by k, discards LSBs, zero-fills on left.
>>>SRA (Arithmetic Right Shift)Shifts bits right by k, preserves and sign-extends MSB on left.
<<<ROL (Circular Rotate Left)Rotates bits left: MSBs wrap around to LSBs.
>>>ROR (Circular Rotate Right)Rotates bits right: LSBs wrap around to MSBs.
+ADD (Modulo 2^W)Binary addition masked to the word size.
-SUB (Modulo 2^W)Binary subtraction masked to the word size.
Recipe Pipeline
Sequential operations (1) executed left-to-right.
&Initial Value
Initial accumulator bit pattern and word size.
Pipeline Output
Bit visualizer, representations, and step workings.
All bitwise calculations execute over 8-bit registers. Signed representations use two’s complement without changing underlying bits. Shift and rotate operations explicitly track discarded and filled bits.