Opcodes · bitwise · enabled

OP_INVERT (0x83)

Flips every bit of the top item (bitwise NOT). Disabled since 2010 and re-enabled on BCH in May 2026.

Verified
Stack in → out
x → ~x
Cost
Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
Bitcoin status
Disabled in Bitcoin (BTC)Disabled since 2010; an OP_SUCCESS code in Tapscript.

Example

<0x0f> OP_INVERT <0xf0> 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