public void CheckDIDX(String checkInst, String CheckOper){
		
		int size = 0;
		
		for(int i = 0; i < DIDX.size(); i++)
		{
			if(DIDX.elementAt(i).equals(checkInst))
			{
				machCod.add(mDIDX.elementAt(i));
				
		//####### Code to make the second step in [D,IDX] instructions, changing 'xb' ########
				
				String Step2 = machCod.lastElement();
				
				if(CheckOper.contains("X") == true)
				{
					Step2 = Step2.replace("xb", "E7");
					machCod2.add(Step2);
				}
				else
					if(CheckOper.contains("Y") == true)
					{
						Step2 = Step2.replace("xb", "EF");
						machCod2.add(Step2);
					}
					else 
						if(CheckOper.contains("SP") == true)
						{
							Step2 = Step2.replace("xb", "F7");
							machCod2.add(Step2);
						}
						else
							if(CheckOper.contains("PC") == true)
							{
								Step2 = Step2.replace("xb", "FF");
								machCod2.add(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 + sDIDX.elementAt(i); 
						
				}
					
			}		
	}