Skip to content

Boolean Operations ​

These mnemonics operate on boolean values. See CandleVM boolean opcodes for runtime behavior.

CASM mnemonicCandleVM opcodeOperandsBehavior
andAnddestination, left, rightWrites the boolean AND of the source registers.
orOrdestination, left, rightWrites the boolean OR of the source registers.
xorXordestination, left, rightWrites the boolean exclusive OR of the source registers.
notNotdestination, sourceWrites the logical negation of the source register.

These operations are not short-circuit expressions: both operands of a binary instruction are already evaluated values in registers.

Built for the Candle ecosystem · Powered by VitePress.