Struct miden_processor::AsmOpInfo
source · pub struct AsmOpInfo { /* private fields */ }
Expand description
Contains assembly instruction and operation index in the sequence corresponding to the specified AsmOp decorator. This index starts from 1 instead of 0.
Implementations§
source§impl AsmOpInfo
impl AsmOpInfo
sourcepub fn new(op: String, num_cycles: u8, cycle_idx: u8) -> Self
pub fn new(op: String, num_cycles: u8, cycle_idx: u8) -> Self
Returns AsmOpInfo instantiated with the specified assembly instruction string, number of cycles it takes to execute the assembly instruction and op index in sequence of operations corresponding to the current assembly instruction. The first index is 1 instead of 0.
sourcepub fn op_generalized(&self) -> String
pub fn op_generalized(&self) -> String
Returns the gerneralized form of assembly instruction corresponding to this state.
sourcepub fn num_cycles(&self) -> u8
pub fn num_cycles(&self) -> u8
Returns the number of VM cycles taken to execute the assembly instruction.