more fixes to bring things up to date with the new test/doc apis
[fleet.git] / src / edu / berkeley / fleet / interpreter / InterpreterBenkoBox.java
index e458136..820e3fd 100644 (file)
@@ -14,10 +14,13 @@ public abstract class InterpreterBenkoBox extends BenkoBox {
         ship.addBenkoBox(name, this);
     }
 
+    private static int default_addr;
+    private static int default_instr_addr;
+
     public int bits;
-    public int addr;
+    public int addr = (default_addr++);
     public int instr_bits;
-    public int instr_addr;
+    public int instr_addr = (default_instr_addr++);
     protected boolean special = false;
     protected boolean ihorn = false;
     protected boolean dhorn = false;