basically-working BitFifo implementation
[fleet.git] / ships / Halt.ship
index 5e0c9df..35b1eff 100644 (file)
@@ -9,16 +9,25 @@ token in: in
 
 == Fleeterpreter ====================================================
 public void service() {
-  if (!box_in.tokenReadyForShip()) return;
-  box_in.removeTokenForShip();
-  ((Interpreter)getInterpreter()).halt = true;
-  Log.println(Log.yellow("    HALT: ====== halt ship got a token; halting the fleet ======"));
+  if (!box_in.dataReadyForShip()) return;
+  box_in.removeDataForShip();
+  // FIXME
+  //  ((Interpreter)getInterpreter()).halt = true;
+  //  Log.println(ANSI.yellow("    HALT: ====== halt ship got a token; halting the fleet ======"));
 }
 
-== ArchSim ==============================================================
+== FleetSim ==============================================================
 
 == FPGA ==============================================================
 // not implemented FIXME
 
+== Test ==============================================================================
+#skip
+#ship debug : Debug
+#expect 0
+0: sendto debug.in;
+
+
 == Contributors =========================================================
 Adam Megacz <megacz@cs.berkeley.edu>
+