Boolean Operation Opcodes
This section documents the boolean operations instructions available in CandleVM.
For operand encodings, see the executable format reference.
Boolean operations
| Opcode byte | Opcode | Operand bytes | Behavior |
|---|---|---|---|
| 33 | And | destination: register, left: register, right: register | Boolean bitwise AND; both operands must be Bool values. It is not short-circuit evaluation. |
| 34 | Or | destination: register, left: register, right: register | Boolean bitwise OR; both operands must be Bool values. It is not short-circuit evaluation. |
| 35 | Xor | destination: register, left: register, right: register | Boolean exclusive OR; both operands must be Bool values. |
| 36 | Not | destination: register, source: register | Boolean negation; the source must be boolean. |