update with ZOMA and new memread/memwrite
[fleet.git] / src / edu / berkeley / fleet / Fleet.java
index 227db43..e78ac74 100644 (file)
@@ -25,6 +25,13 @@ public class Fleet {
                 ship._service();
     }
 
+    public void dumpMem() {
+        for(int i=0; i<mem.length; i++) {
+            if ((i%10)==0) Log.println("    ");
+            Log.print(mem[i] + " ");
+        }
+    }
+
     public Ship.Inbox getInbox(String ship, String port) {
         Ship s = ships.get(ship);
         if (s == null) throw new RuntimeException("unknown ship \""+ship+"\"");