1 package net.sf.zel.instr;
2
3 import net.sf.zel.vm.ExecutionContext;
4 import net.sf.zel.vm.ZExecutionException;
5
6 public final class JMP extends Instruction
7 {
8
9 private static final long serialVersionUID = -3763337334172149636L;
10
11 private JMP(){};
12
13 public void execute(ExecutionContext context) throws ZExecutionException
14 {
15 int address = ((Number) context.code.get(++context.ip)).intValue();
16 context.ip = address;
17
18 }
19
20
21
22 public static final Instruction instance = new JMP();
23 }
24