pulley_interpreter::encode

Function br_table32

Source
pub fn br_table32<E>(into: &mut E, idx: impl Into<XReg>, amt: impl Into<u32>)
where E: Extend<u8>,
Available on crate feature encode only.
Expand description

Branch to the label indicated by idx.

After this instruction are amt instances of PcRelOffset and the idx selects which one will be branched to. The value of idx is clamped to amt - 1 (e.g. the last offset is the “default” one.