}
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;
writing = false;
} else if (box_inAddrWrite.dataReadyForShip()) {
- addr = box_inAddrWrite.peekPacketForShip().value;
+// addr = box_inAddrWrite.peekPacketForShip().value;
box_inAddrWrite.removeDataForShip();
stride = 0;
count = 1;