public void pullInputs(int rmask) {

        for (int r = 0; r < 4; r++) {
            if ((rmask & (1 << r)) != 0) {
                inputs[r] = 0;
                for (int i = 0; i < 16; i++) {
                    int regId = PRFabricationEngine.inputRegisterId(r, i);
                    if (simulation.getRegByteVal(regId) != 0) inputs[r] |= (1 << i);
                }
            }
        }
    }
Outputs from the simulation indexed by rotation (0-3).
fabrication/src/main/java/mrtjp/projectred/fabrication/engine/ICSimulationContainer.java