Trait juicebox_asm::insn::Cmp

source ·
pub trait Cmp<T, U> {
    // Required method
    fn cmp(&mut self, op1: T, op2: U);
}
Expand description

Trait for cmp instruction kinds.

Required Methods§

source

fn cmp(&mut self, op1: T, op2: U)

Emit a compare instruction.

Computes op2 - op1 and sets the status flags in the same way as the sub instruction, the result is discarded.

Implementors§