We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ef3f5 commit 4b5c217Copy full SHA for 4b5c217
crates/leanVm/src/core.rs
@@ -105,6 +105,22 @@ impl VirtualMachine {
105
106
Ok(())
107
}
108
+
109
+ /// Updates the program counter and frame pointer based on the executed instruction.
110
+ fn update_registers<F>(
111
+ &mut self,
112
+ instruction: &Instruction<F>,
113
+ ) -> Result<(), VirtualMachineError<F>>
114
+ where
115
+ F: PrimeField64,
116
+ {
117
+ // Update the program counter.
118
+ self.update_pc(instruction)?;
119
+ // Update the frame pointer.
120
+ self.update_fp(instruction)?;
121
122
+ Ok(())
123
+ }
124
125
126
#[cfg(test)]
0 commit comments