private void secondPass() {

		int lineCounter = 0;

		for (String assemblyLine : data.getAssemblyCode()) {
			lineCounter++;
			String[] commentSplit = assemblyLine.split(";");
			
			try {				
				assemblyLine = commentSplit[0];				
			} catch (ArrayIndexOutOfBoundsException e) {				
				assemblyLine = "";
			}
			
			assemblyLine = assemblyLine.trim();

			if (assemblyLine.length() > 0) {
				try {					
					analyseLineSecondPass(assemblyLine);					
				} catch (AssemblerException e) {					
					String error = getErrorMessage(lineCounter, assemblyLine, e.getMessage());
					objectCode.add(error);
					writeLinesToFile("object_code.txt", objectCode);
					System.exit(0);
				}
			}
		}
	}