Beispiel #1
0
 public Branch execute(Processor cpu) {
   cpu.eip += blockLength;
   int tmpEip = cpu.eip + jmp;
   cpu.cs.checkAddress(tmpEip);
   cpu.eip = tmpEip;
   return Branch.T1;
 }
Beispiel #2
0
 public Branch execute(Processor cpu) {
   if (cpu.r_cx.get16() == 0) {
     int target = (cpu.eip + jmp + blockLength) & 0xffff;
     cpu.cs.checkAddress(target);
     cpu.eip = target;
     return Branch.T1;
   } else {
     cpu.eip += blockLength;
     return Branch.T2;
   }
 }
Beispiel #3
0
 public Branch execute(Processor cpu) {
   if (!cpu.of()) {
     int tmpEip = cpu.eip + jmp + blockLength;
     cpu.cs.checkAddress(tmpEip);
     cpu.eip = tmpEip;
     return Branch.T1;
   } else {
     cpu.eip += blockLength;
     return Branch.T2;
   }
 }