for (int i = 0; i < tile.getSwitchCode().size(false); i++) { fw.write("\t" + tile.getSwitchCode().getIns(i, false).toString() + "\n"); }
    public static void run(RawChip chip)     {	try {	    rawChip = chip;	    for (int x = 0; x < rawChip.getXSize(); x++)		for (int y = 0; y < rawChip.getYSize(); y++) {		    RawTile tile = rawChip.getTile(x, y);		    if (tile.hasSwitchCode()) {			FileWriter fw = new FileWriter("sw" + tile.getTileNumber() + 						       ".s");						fw.write("#  Switch code\n");			fw.write(getHeader());						//write the initialization code						fw.write("sw_loop:\n");			//write the steady state code						fw.write("\tj\tsw_loop\n\n");			fw.write(getTrailer());			fw.close();		    }		}	}	catch (Exception e) {	    System.err.println("Serious error writing switch code.");	    System.exit(-1);	}	    }