Skip to content

Commit

Permalink
Merge pull request #1492 from o1-labs/feature/mips/mtlo
Browse files Browse the repository at this point in the history
Implement `mtlo`
  • Loading branch information
dannywillems authored Dec 11, 2023
2 parents 5888419 + cc4b4e7 commit 3aabb28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,13 @@ pub fn interpret_rtype<Env: InterpreterEnv>(env: &mut Env, instr: RTypeInstructi
env.set_next_instruction_pointer(next_instruction_pointer + Env::constant(4u32));
return;
}
RTypeInstruction::MoveToLo => (),
RTypeInstruction::MoveToLo => {
let rs = env.read_register(&rs);
env.write_register(&Env::constant(REGISTER_LO as u32), rs);
env.set_instruction_pointer(next_instruction_pointer.clone());
env.set_next_instruction_pointer(next_instruction_pointer + Env::constant(4u32));
return;
}
RTypeInstruction::Multiply => (),
RTypeInstruction::MultiplyUnsigned => {
let rs = env.read_register(&rs);
Expand Down

0 comments on commit 3aabb28

Please sign in to comment.