| 1 | Initialize result=0 | 00000000000000000000000000000011 | - | 00000000000000000000000000000000 | 00000000000000000000000000000000 | result=0 |
| 2 | Extract bit, shift result, add bit | 00000000000000000000000000000011 | 1 | 00000000000000000000000000000000 | 00000000000000000000000000000001 | result=000...001 |
| 3 | Shift input right | 00000000000000000000000000000001 | - | 00000000000000000000000000000001 | 00000000000000000000000000000001 | n=000...001 |
| 4 | Extract bit, shift result, add bit | 00000000000000000000000000000001 | 1 | 00000000000000000000000000000001 | 00000000000000000000000000000011 | result=000...011 |
| 5 | Shift input right | 00000000000000000000000000000000 | - | 00000000000000000000000000000011 | 00000000000000000000000000000011 | n=000...000 |
| 6 | Extract bit, shift result, add bit | 00000000000000000000000000000000 | 0 | 00000000000000000000000000000011 | 00000000000000000000000000000110 | result=000...110 |
| 7 | Shift input right | 00000000000000000000000000000000 | - | 00000000000000000000000000000110 | 00000000000000000000000000000110 | n=000...000 |
| 8 | Extract bit, shift result, add bit | 00000000000000000000000000000000 | 0 | 00000000000000000000000000000110 | 00000000000000000000000000001100 | result=000...1100 |
| 9 | Shift input right | 00000000000000000000000000000000 | - | 00000000000000000000000000001100 | 00000000000000000000000000001100 | n=000...000 |
| 10 | Repeat for remaining bits (all 0) | 00000000000000000000000000000000 | 0 | shifting and adding 0 | result shifts left each time | result accumulates zeros on right |
| 32 | Final step | 00000000000000000000000000000000 | 0 | result before last shift | result final | result=11000000000000000000000000000000 |
| 33 | Return result | - | - | - | 11000000000000000000000000000000 | Reversed bits of input 3 |