public void CheckIDX_2 (String checkInst, String CheckOper){
		
		int size = 0;
		
		for(int i = 0; i < IDX_2.size(); i++)
		{
			if(IDX_2.elementAt(i).equals(checkInst))
			{
				machCod.add(mIDX_2.elementAt(i));
				
			//############# Code to make the second step in [IDX2] instructions, changing 'xb ee ff' #######
			
				String Step2 = machCod.lastElement();
				
				if(CheckOper.contains("X") == true)
					XbIDX_2(0,CheckOper,Step2);
				else
					if(CheckOper.contains("Y") == true)
						XbIDX_2(1,CheckOper,Step2);
					else 
						if(CheckOper.contains("SP") == true)
							XbIDX_2(2,CheckOper,Step2);
						else 
							if(CheckOper.contains("PC") == true)
								XbIDX_2(3,CheckOper,Step2);
				
			//##############################################################################################	
				
				String hexDIR = Integer.toHexString(GlobalCont);
				
				size = hexDIR.length();
				
				if (size == 1)
					contLoc.add("000" + hexDIR);
					else
						if (size == 2)
							contLoc.add("00" + hexDIR);
							else
								if (size == 3)
									contLoc.add("0" + hexDIR);
								else
									contLoc.add(hexDIR);	
						
						GlobalCont = GlobalCont + sIDX_2.elementAt(i); 
						
				}
					
			}
		
	}