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.