Skip to content

Commit

Permalink
Merge branch 'feature/add-zkvm-instruction' into feature/imperfect-in…
Browse files Browse the repository at this point in the history
…struction-parsing
  • Loading branch information
mrmr1993 committed Dec 5, 2023
2 parents 2246bb9 + debadb5 commit 00a7bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimism/src/mips/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,15 @@ pub fn interpret_rtype<Env: InterpreterEnv>(env: &mut Env, instr: RTypeInstructi
env.set_instruction_pointer(next_instruction_pointer.clone());
env.set_next_instruction_pointer(next_instruction_pointer + Env::constant(4u32));
return;
},
}
RTypeInstruction::AddUnsigned => {
let rs = env.read_register(&rs);
let rt = env.read_register(&rt);
env.write_register(&rd, rs + rt);
env.set_instruction_pointer(next_instruction_pointer.clone());
env.set_next_instruction_pointer(next_instruction_pointer + Env::constant(4u32));
return;
},
}
RTypeInstruction::Sub => (),
RTypeInstruction::SubUnsigned => (),
RTypeInstruction::And => (),
Expand Down

0 comments on commit 00a7bdd

Please sign in to comment.