Skip to main content

encode_bundle

Function encode_bundle 

Source
pub fn encode_bundle(b: &Bundle, program: &Program) -> InstrW
Expand description

Encode a compiled bundle as a ROM word.

Empty slots are encoded disabled with harmless operands. Panics if the first multiply factor is in bank L (the instruction set reserves bank L for the second factor) or an operand index does not fit seven bits.