import edu.berkeley.fleet.api.*;
import edu.berkeley.fleet.api.Instruction;
import static edu.berkeley.fleet.api.Predicate.*;
+import static edu.berkeley.fleet.two.FleetTwoFleet.SHIFT;
/** anything that has a source (instruction horn) address on the switch fabric */
class InterpreterDock extends FleetTwoDock {
if (executing instanceof Instruction.Shift) {
Instruction.Shift shift = (Instruction.Shift)executing;
- for(int i=dataLatch.length()-1; i>=19; i--)
- dataLatch.set(i, dataLatch.get(i-19));
- for(int i=18; i>=0; i--)
+ for(int i=dataLatch.length()-1; i>=SHIFT.valmaskwidth; i--)
+ dataLatch.set(i, dataLatch.get(i-SHIFT.valmaskwidth));
+ for(int i=SHIFT.valmaskwidth-1; i>=0; i--)
dataLatch.set(i, shift.immediate.get(i));
executing = null;
return;