There was an error while loading. Please reload this page.
1 parent 125263a commit d35ea9cCopy full SHA for d35ea9c
vm/src/executor.rs
@@ -125,7 +125,9 @@ pub fn execute(
125
Instruction::Nop => {}
126
Instruction::Not => unimplemented!(),
127
Instruction::Eq => unimplemented!(),
128
- Instruction::Jmp(..) => unimplemented!(),
+ Instruction::Jmp(val) => {
129
+ pc += *val as usize;
130
+ }
131
Instruction::Jnz(..) => unimplemented!(),
132
Instruction::Jz(..) => unimplemented!(),
133
Instruction::Push(val) => stack.push(Item(vec![*val]))?,
0 commit comments