add interpreter code and tests for loop counter instructions
[fleet.git] / src / edu / berkeley / fleet / interpreter / Outbox.java
index 4aeb320..85b3926 100644 (file)
@@ -27,6 +27,9 @@ public class Outbox extends InstructionPump {
     public Outbox(InterpreterShip ship, String name) { this(ship, name, new String[] { "" }); }
     public Outbox(InterpreterShip ship, String name, String[] ports) { super(ship, name, ports); }
 
+    protected void setDataLatch(long value) { register = value; }
+    protected long peekDataLatch() { return register; }
+
     protected final boolean service(Instruction.Executable instruction_) {
         if (clogged>0) return false;
         if (instruction_ instanceof Instruction.Clog) { clogged++; return true; }