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.

Sources

  1. CHIP-2025-05 Bitwise: Re-Enable Bitwise Operations
  2. Libauth BCH_2026_05 opcodes (bch-2026-opcodes.ts)
  3. Announcing Bitcoin Cash Node v29.0.0