private void analyseLineFirstPass(String assemblyLine) throws AssemblerException {


		if (assemblyLine.equals(".data")){			
			if(dataDeclared)
				throw new AssemblerException(".data section already declared.");			
			dataDeclared = true;			
			atData = true;
			atText = false;
		}

		else if (assemblyLine.equals(".text")) {			
			if(textDeclared)
				throw new AssemblerException(".text section already declared.");			
			textDeclared = true;			
			atData=false;
			atText=true;
		}

		else if (atData) 
			analyseDataFirstPass(assemblyLine);

		else if (atText) 
			analyseInstructionsFirstPass(assemblyLine);
		
		else
			throw new AssemblerException("No section header (\".data\" or \".text\").");
		
	}