refactor codebag-memory-block creation code
[fleet.git] / ships / Memory.ship
index ed6d55e..8d86208 100644 (file)
@@ -88,34 +88,7 @@ sequence guarantee problem mentioned in the previous paragraph.
         }
         mem[addr] = val;
     }
-/*
-    public void dispatch(int addr, int size) {
-        for(int i=addr; i<addr+size; i++) {
-            Instruction instr = ((Interpreter)getFleet()).readInstruction(getFleet().getUniversalSource(), readMem(i));
-            ((Interpreter)getFleet()).dispatch(instr, i);
-        }
-    }
 
-    public void boot(byte[] instructions) {
-        Interpreter fleet = (Interpreter)getFleet();
-        // load the iscratch and take note of the 0-address INCBD
-        long launch = 0;
-        for(int i=0; i<instructions.length; i+=6) {
-            long word = 0;
-            for(int j=0; j<6; j++)
-                word = (word << 8) | (instructions[i+j] & 0xff);
-            writeMem(i/6, word);
-            if (i==0) launch = word;
-        }
-
-        // dispatch the 0-address INCBD
-        int base = (int)(launch >> 6);
-        base = base & ~(0xffffffff << 18);
-        int size = (int)launch;
-        size = size & ~(0xffffffff <<  6);
-        dispatch(base, size);
-    }
-*/
     private long stride = 0;
     private long count = 0;
     private long addr = 0;
@@ -153,7 +126,7 @@ sequence guarantee problem mentioned in the previous paragraph.
             writing = false;
 
         } else if (box_inAddrWrite.dataReadyForShip()) {
-            addr = box_inAddrWrite.peekPacketForShip().value;
+//            addr = box_inAddrWrite.peekPacketForShip().value;
             box_inAddrWrite.removeDataForShip();
             stride = 0;
             count = 1;