Skip to content

Commit

Permalink
2024-05-27 00:18:20
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed May 26, 2024
1 parent b5281f1 commit 6b5fae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/instructions/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,7 @@ pub fn execute<Mac: Machine>(inst: Instruction, machine: &mut Mac) -> Result<(),
let next_pc = machine
.pc()
.overflowing_add(&Mac::REG::from_u8(instruction_size));
println!("{:?} {:?} {:?}", machine.pc().to_u64(), inst, ckb_vm_definitions::instructions::instruction_opcode_name(extract_opcode(inst)));
machine.update_pc(next_pc);
let r = execute_instruction(inst, machine);
machine.commit_pc();
Expand All @@ -1579,6 +1580,7 @@ pub fn execute_with_thread<Mac: Machine>(
let next_pc = machine
.pc()
.overflowing_add(&Mac::REG::from_u8(instruction_size));
println!("{:?} {:?} {:?}", machine.pc().to_u64(), inst, ckb_vm_definitions::instructions::instruction_opcode_name(extract_opcode(inst)));
machine.update_pc(next_pc);
let r = thread(machine, inst);
machine.commit_pc();
Expand Down

0 comments on commit 6b5fae1

Please sign in to comment.