Opcodes · bitwise · enabled
OP_RSHIFTBIN (0x99)
Logical right shift of a byte string by `bits`, keeping its length: zeros shift in from the left and bits shifted out on the right are dropped. This byte was the disabled OP_RSHIFT before May 2026.
Verified
- Stack in → out
- bin bits → bin>>bits
- Cost
- Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
- Bitcoin status
- Disabled in Bitcoin (BTC)0x99 is the disabled OP_RSHIFT in BTC; an OP_SUCCESS code in Tapscript.
Example
<0xf0> OP_4 OP_RSHIFTBIN <0x0f> OP_EQUAL Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.