Visual identity

If you want promote your business, then you have come to the right place. more »

Unique solutions

If you want promote your business, then you have come to the right place. more »

Live support

If you want promote your business, then you have come to the right place. more »

Java Code For 2-Pass MacroProcessor

Posted by Unknown















Pass 1 Of 2-Pass MacroProcessor:-

import java.io.*;
import java.util.*;
class Macro
{
public static void main(String args[])
{
Scanner src=new Scanner(System.in);
String mn[]=new String[50];
String md[]=new String[50];
int mdti[]=new int[50];
String ala[]=new String[50];
int c=0,a=0;
System.out.println("Enter the name of file with format");
String f=src.next();
        try
{
        FileReader fr=new FileReader(f);
        BufferedReader br = new BufferedReader(fr);
        String x;
while((x=br.readLine())!=null)
{
if(x.equals("MACRO"))
{
x=br.readLine();
int i = x.indexOf(" ");
mn[c]=x.substring(0,i);
mdti[c]=c+1;
ala[a++]=x.substring(i+1,x.length());
md[c]="";
while(!x.equals("MEND"))
{
md[c]=md[c]+x+'\n'+"\t";
x=br.readLine();
}
md[c]+="MEND\n";
c++;
}
}

}
catch(Exception e){ System.out.println(e);}

System.out.println("MNT");
System.out.println("Index\tMacroname\tMDT index");
for(int j=0;j<c;j++)
{
System.out.println((j+1)+"\t"+mn[j]+"\t\t"+mdti[j]);
}
System.out.println();

System.out.println("MDT");
System.out.println("Index\tMacrodefinition");
for(int j=0;j<c;j++)
{
System.out.print((j+1)+"\t"+md[j]);
}
System.out.println();
System.out.println("ALA with formal parameters");
System.out.println("Index\tArguments");
for(int j=0;j<a;j++)
{
System.out.println((j+1)+"\t"+ala[j]);
}
System.out.println();
}
}


Pass 2 Of 2-Pass MacroProcessor:-
import java.io.*; import java.util.*; class Macro2 { public static void main(String args[]) { Scanner src=new Scanner(System.in); String mn[]=new String[50]; String md[]=new String[50]; int mdti[]=new int[50]; String u,t=""; String ala[]=new String[50]; String ala1[]=new String[50]; int c=0,a=0,k=0; System.out.println("Enter the name of file with format"); String f=src.next(); try { FileReader fr=new FileReader(f); BufferedReader br = new BufferedReader(fr); String x,y; boolean flag=false; while((x=br.readLine())!=null) { if(x.equals("MACRO")) { x=br.readLine(); int i = x.indexOf(" "),j; mn[c]=x.substring(0,i); mdti[c]=c+1; ala1[k++]=x.substring(i+1,x.length()); md[c]=""; while(!x.equals("MEND")) { md[c]=md[c]+x+'\n'+"\t"; x=br.readLine(); } md[c]+="MEND\n"; c++; } if(x.contains("START"))flag=true; if(flag==true) { for(int j=0;j<c;j++) { y=mn[j]; if(x.contains(y)) { int i = x.indexOf(" "); ala[a++]=x.substring(i+1,x.length()); break; } } } } } catch(IOException e){ System.out.println(e);} System.out.println("MNT"); System.out.println("Index\tMacroname\tMDT index"); for(int j=0;j<c;j++) { System.out.println((j+1)+"\t"+mn[j]+"\t\t"+mdti[j]); } System.out.println(); System.out.println("MDT"); System.out.println("Index\tMacrodefinition"); for(int j=0;j<c;j++) { System.out.print((j+1)+"\t"+md[j]); } System.out.println(); System.out.println("ALA with actual parameters"); System.out.println("Index\tArguments"); for(int j=0;j<a;j++) { System.out.println((j+1)+"\t"+ala[j]); } System.out.println("\nESC\n"); try { FileReader free=new FileReader(f); BufferedReader b = new BufferedReader(free); String w; boolean zenda=false; more : while((w=b.readLine())!=null) { int i =0,k1=0; if(w.contains("START")) zenda=true; if(zenda==true) { for(int j=0;j<c;j++) { if(w.contains(mn[j])) { u = md[j].substring(md[j].indexOf("\n"),md[j].indexOf("MEND")); for(int l=0;l<a;l++) { if(u.contains(ala1[l])) { t=""; while((i=u.indexOf(ala1[l],k1))!=-1) { t = t + u.substring(k1,i)+ala[l]; k1=u.indexOf("\n", i); } break; } } System.out.println(t); continue more; } } } System.out.println(w); } } catch(Exception e){} } }



more »

Java Code For 2-Pass Assembler

Posted by Unknown















Pass 1 of 2-Pass Assembler

import java.util.*;
import java.io.*;
class AssemblerExp
{
  int l =0;
      static int c=-1;
     static int count=0;
    String symbol []= new String [50];
    public AssemblerExp()
     {
Scanner src=new Scanner(System.in);
        String x;
System.out.println("Enter the name of file with format");
String f=src.next();
           try{
        FileInputStream fr = new FileInputStream(f);
        InputStreamReader isr = new InputStreamReader(fr);
        BufferedReader bf = new BufferedReader(isr);
         x=bf.readLine();
System.out.println("\nPass 1 Symbol Table :-");
System.out.println("---------------------------------");
System.out.println("Symbol\tvalue\tlength\tR/A\t|");
System.out.println("---------------------------------");
          do{
                //System.out.println(x);
              check(x);
               x=bf.readLine();
           
            }while(x!=null);
           }
catch(Exception e){}
      }//assemblerexp

     void check(String x)
      {
        count++;
        boolean flag=false;
     
        if(x.contains("USING")||x.contains("DROP")||x.contains("L ")||x.contains("A "))
           {}
        else
           symbol(x);
   
       }
       void symbol(String x)
        {
         
          int i = x.indexOf(" ");
          String sym = x.substring(0,i);
            c++;
          symbol[c]=sym;
            if(c!=0 &&!(x.contains("EQU")) ){
          int length=0;
           if(x.contains("F"))
             length=4;
           else if(x.contains("B"))
              length=1;
           else if(x.contains("D"))
              length=8;
           String value;
           value=x.substring(x.lastIndexOf(" ")+1);

          System.out.println(symbol[c]+"\t "+l+"\t "+length+"B\t"+" R\t| ");
l=l+length;
           }
         
          else if(c==0)
            {
               boolean flag = false;
                if(x.endsWith("START"))
                  flag=true;
                 if(flag)
               System.out.println(symbol[c]+"\t - "+"\t 1B\t "+"R\t| ");
                 else
                   System.out.println(symbol[c]+"\t- "+"\t 1B\t "+"A\t| ");
               }
             if(x.contains("EQU")){
                  System.out.println(symbol[c]+"\t 8"+"\t 1B\t "+"A\t| ");
                   }
         

       
        }//symbol()

     

}//class
   
class Assembler
{
   public static void main(String args[])
    {
      AssemblerExp obj = new AssemblerExp();
   System.out.println("---------------------------------");
    }//funt
}//class

Pass 2 of 2-Pass Assembler

import java.util.*;
 import java.io.*;
 class AssemblerExp
 {
 int l =0;
 static int c=-1;
 static int count=0;
 String symbol []= new String [50];
 public AssemblerExp()
 {
 Scanner src=new Scanner(System.in);
 String x;
 System.out.println("Enter the name of file with format");
 String s=src.next();
 try
 {
 FileReader f = new FileReader(s);
 BufferedReader bf = new BufferedReader(f);
 x=bf.readLine();
 System.out.println("\nPass 2 Symbol Table :-");
 System.out.println("---------------------------------");
 System.out.println("Symbol\tvalue\tlength\tR/A\t|");
 System.out.println("---------------------------------");

do
{
System.out.println(x);
 check(x); x=bf.readLine();
 }
 while(x!=null);
 FileReader fr=new FileReader("sample.txt");
 BufferedReader buf = new BufferedReader(fr);
 String b="";
 while((x=buf.readLine())!=null)
 {
 if(x.contains("BASE EQU"))
 {
 int k=x.lastIndexOf(" ");
 b=x.substring(k+1,x.length());
 }
 }
 System.out.println("Base = "+b);
 }
 catch(Exception e){}
 try
 {
 FileReader fr=new FileReader(s);
 BufferedReader br=new BufferedReader(fr);
 String y="";
 int l=0; System.out.println();
 while((x=br.readLine())!=null)
 {
 if(x.equals("END")) System.out.println(x+"\t\t\t\t"+l);
 else System.out.println(x+"\t\t\t"+l);
 if(x.contains("BASE EQU"))
 {
 int k=x.lastIndexOf(" ");
 y=x.substring(k+1,x.length());
 }
 if(x.contains("L ")||x.contains("ST ")||x.contains("A "))
 {
 for(int i=0;i<c;i++)
 {
 if(x.contains(symbol[i])) l+=4;
 }
 }

for(int i=0;i<c;i++)
 {
 if(x.contains(symbol[i]))
 {
 if(x.contains("B "))l+=1;
 else if(x.contains("H "))l+=2;
 else if(x.contains("F "))l+=4;
 else if(x.contains("D "))l+=8;
 }
 }
 }
 System.out.println();
 System.out.println("Base Table");
 System.out.println("Availability\tContentOfBaseRrg");
 System.out.println("Yes\t\t"+y);
 } catch(Exception e){}
 }
  void check(String x)
 {
 count++;
 boolean flag=false;
 if(x.contains("USING")||x.contains("DROP")||x.contains("L")||x.contains("A "))
 {}
 else symbol(x);
 }
 void symbol(String x)
 {
 int i = x.indexOf(" ");
 String sym = x.substring(0,i);
 c++;
 symbol[c]=sym; if(c!=0 &&!(x.contains("EQU")) )
 {
 int length=0;
 if(x.contains("F")) length=4;
 else if(x.contains("B")) length=1;
 else if(x.contains("D")) length=8;
 String value;
 value=x.substring(x.lastIndexOf(" ")+1);
 System.out.println(symbol[c]+"\t "+l+"\t "+length+"B\t"+" R\t| ");

l=l+length;
 }
 else
 if(c==0)
 {
 boolean flag = false;
 if(x.endsWith("START")) flag=true;
 if(flag)
 System.out.println(symbol[c]+"\t - "+"\t 1B\t "+"R\t| ");
 else
 System.out.println(symbol[c]+"\t- "+"\t 1B\t "+"A\t| ");
 }
 if(x.contains("EQU"))
 { System.out.println(symbol[c]+"\t 8"+"\t 1B\t "+"A\t| ");
 }
 }
 }
 class Assembler2
 {
 public static void main(String args[])
 {
 AssemblerExp obj = new AssemblerExp();
 //System.out.println("---------------------------------");
 }//funt

 }//class

more »

Now You Can Run FireFox OS Apps Natively On Your Android Device

Posted by Unknown

Mozilla has now felt free to redesigned its prominent Firefox web browser for Windows, Mac, Linux and Android bringing it to form 29 in its most recent exertion to offer asimplified main interface to clients. Firefox 29 is as Mozilla puts it the 'most customisable Firefox ever' that gloats of an 'exquisite new outline' and is accessible for download now. Here's some all the more uplifting news for designers. Firefox for Android 29 now additionally permits clients to run Firefox OS applications on their Android devices.

Presently, you would ask, what's such a big deal about, to the point that, after all Open Web Apps produced for the Firefox OS can run on a program, consequently, Android having the capacity to run these applications is no amazement! On the other hand, Mozilla is in fact out to make the life of a designer way less demanding. Firefox for Android 29 now runs Firefox OS built applications locally with respect to any Android devices, instead of being restricted to the browser . Android clients can now download Firefox OS applications from the Firefox OS application store and introduce them on their devices. They can additionally make shortcuts on the home screen much like ordinary Android application.

What this move essentially accomplishes for designers is show that their applications now have a greater stage to run on, kindness Firefox for Android 29. As per Mozilla, existing Firefox OS applications will run on Android applications without developers needing to change their code. On the downside, the execution of some of these applications may not be as smooth not surprisingly.

Take a look at this video:
more »

BMW will deliver Electric Car in China in September

Posted by Unknown

SHANGHAI (Reuters) - BMW will begin conveying foreign made electric autos in China in September, with pre-orders demonstrating short supplies in a market that could turn into the world's greatest for green vehicles, China president Karsten Engel said on Wednesday. The German premium automaker will offer its all-electric fueled BMW i3 car and module half breed i8 sports auto in four Chinese urban communities at first, with a deals top of 1,000 vehicles not long from now, Engel said. The i3 begins at 450,000 yuan ($72,000), less expensive than some had expected.

"There are a lot of people a bigger number of clients than supply," Engel told journalists in Shanghai, where BMW dispatched a task to construct accusing offices of State Grid Corp of China and Expo Shanghai Group. Engel declined to say what number of pre-orders the organization has gained in China for the i3 since the model was divulged at the Beijing automobile fair a month ago, however said more than 28,000 individuals have asked for a test drive in an indication of open investment.

Munich-based BMW rivals adversaries including Tesla Motors Inc, Volkswagen AG and Daimler AG in offering electric autos in China's gradually creating business sector for environmentally friendly vehicles.

China has set a goal-oriented focus of putting 5 million electric or module mixture vehicles on the nation's streets by 2020, part of Beijing's deliberations to battle contamination and diminish dependence on oil imports. At first dispatched in Europe at the end of 2013, the BMW i3 is made in Germany out of carbon fiber and aluminum and has a reach of around 160 kilometers. It was presented in April in the United States, retailing at a proposed cost of $41,350.

The i3, which will be sold in Shanghai, Beijing, southern Shenzhen and northeastern Shenyang, is less expensive than Tesla's Model S which begins at 648,000 yuan in China. Through its joint wander with Brilliance China Automotive Holdings Ltd, BMW has likewise propelled an electric vehicle in China, the Zinoro, which for now is only available for rent.

more »

About Me:

Posted by Unknown


View My Profile:-















Name :-
Chetan Subhash Rane

Course :-
BE  In Computer Science

Institute :-
Vidyalankar  Institute Of Technology,Sangam  Nagar,Wadala,Mumbai

Skill :-

Programming Languages :-Java , C , C++ , Python
OS:-Windows , Linux
Web Technologies :-HTML , CSS , JavaScript
Databases :-MySQL , Oracle

Email Id :- chetanrane72@gmail.com



more »

Speed Up Your Android Phones

Posted by Unknown

Speed Up Your Android Phones

Instructions to Speed Up Your Android Phones Up To 200% Is it true that you are worn out on your slow working Android phone? Does your gadget take quite a while to dispatch any application or begin a system? If yes, then you have to attempt ways so you can accelerate the execution of your phone and restore it back.

Read more here: http://geekofreak.com/2014/01/how-to-speed-up-your-android-phones-up-to-200.html#ixzz34JmKqkpd
more »

Fixing Insufficient Storage In Android Smartphones

Posted by Unknown

Fixing Insufficient Storage In Android Smartphones Instructions to Fix Insufficient Storage Available In Android Smartphones? The interior memory of the Android Smartphone's is not huge. When you download the applications from Google Play Store, they get spared in the telephone and occupy a large space.
Read more here: http://geekofreak.com/2013/12/how-to-fix-insufficient-storage-available-in-android-smartphones.html#ixzz34JoWvupB
more »