Skip to main content

feed_gas_direct

Function feed_gas_direct 

Source
pub fn feed_gas_direct(
    opcode_byte: u8,
    ra: u8,
    rb: u8,
    rd: u8,
    gas_sim: &mut GasSimulator,
    mem_cycles: u8,
) -> (bool, bool)
Expand description

Feed the gas simulator directly from raw register bytes, skipping FastCost construction. Returns (is_terminator, is_branch_or_special) — the caller uses is_branch_or_special to fall back to the full path for rare cases.