public void XbIDX16 (int n, int Dir, String Step2){	
		 
		String ff,ee = "0",sum;
		int ln;
		 
		switch(n)
		{
			case 0:
				Step2 = Step2.replace("xb", "E2");
				
				ff = Integer.toHexString(Dir);
				ln = ff.length();
				
				if(ln == 3)
				{
					ee = "0"+ ff.charAt(0);
					ff = ff.substring(1,3); 
					sum = ee + " " + ff;
				}
				else{	
					ee = ff.substring(0,2);  
					ff = ff.substring(2,4); 
					sum = ee + " " + ff;
					}
				
				Step2 = Step2.replace("ee ff", sum);
				machCod2.add(Step2);
				break;
			
			case 1:
				Step2 = Step2.replace("xb", "EA");
				
				ff = Integer.toHexString(Dir);
				ln = ff.length();
				
				if(ln == 3)
				{
					ee = "0"+ ff.charAt(0);
					ff = ff.substring(1,3); 
					sum = ee + " " + ff;
				}
				else{	
					ee = ff.substring(0,2);  
					ff = ff.substring(2,4); 
					sum = ee + " " + ff;
					}	
					
				
				Step2 = Step2.replace("ee ff", sum);
				machCod2.add(Step2);
				break;
				
			case 2:
				Step2 = Step2.replace("xb", "F2");
				
				ff = Integer.toHexString(Dir);
				ln = ff.length();
				
				if(ln == 3)
				{
					ee = "0"+ ff.charAt(0);
					ff = ff.substring(1,3); 
					sum = ee + " " + ff;
				}
				else{	
					ee = ff.substring(0,2);  
					ff = ff.substring(2,4); 
					sum = ee + " " + ff;
					}
				
				Step2 = Step2.replace("ee ff", sum);
				machCod2.add(Step2);
				break;
				
			case 3:
				Step2 = Step2.replace("xb", "FA");
				
				ff = Integer.toHexString(Dir);
				ln = ff.length();
				
				if(ln == 3)
				{
					ee = "0"+ ff.charAt(0);
					ff = ff.substring(1,3); 
					sum = ee + " " + ff;
				}
				else{	
					ee = ff.substring(0,2);  
					ff = ff.substring(2,4); 
					sum = ee + " " + ff;
					}
				
				Step2 = Step2.replace("ee ff", sum);
				machCod2.add(Step2);
				break;	
				
			default:
				break;
		}
		
	}