/*Java Program TO Implement Pass-I of Two Pass Assembler , Input: Assembly Langauage Program , Output:Symbol Table*/ import java.io.*; class pasone { public static void main(String ar[])throws IOException { int i; String a[][]={ //string array {"","START","101",""}, {"","MOVER","BREG","ONE"}, {"","MOVEM","BREG","TERM"}, {"AGAIN","MULT","BREG","TERM"}, {"","MOVER","CREG","TERM"}, {"","ADD","CREG","N"}, {"","MOVEM","CREG","RESULT"}, {"N","DS","6",""}, {"RESULT","DS","6",""}, {"ONE","DC","1",""}, {"TERM","DS","3",""}, {"END","","",""} }; int lc=Integer.parseInt(a[0][2]);//parsing string arguements into an integer object(returns-101) String st[][]=new String[5][2];//create object & variable(st)->refer to object in the heap memory. int cnt=0,l; for(i=0;i
/*Java Program TO Implement Pass-I of Two Pass Assembler , Input: Assembly Langauage Program , Output:Symbol Table*/ import java.io.*; class pasone { public static void main(String ar[])throws IOException { int i; String a[][]={ //string array {"","START","101",""}, {"","MOVER","BREG","ONE"}, {"","MOVEM","BREG","TERM"}, {"AGAIN","MULT","BREG","TERM"}, {"","MOVER","CREG","TERM"}, {"","ADD","CREG","N"}, {"","MOVEM","CREG","RESULT"}, {"N","DS","6",""}, {"RESULT","DS","6",""}, {"ONE","DC","1",""}, {"TERM","DS","3",""}, {"END","","",""} }; int lc=Integer.parseInt(a[0][2]);//parsing string arguements into an integer object(returns-101) String st[][]=new String[5][2];//create object & variable(st)->refer to object in the heap memory. int cnt=0,l; for(i=0;i
/*Java Program TO Implement Pass-I of Two Pass Assembler , Input: Assembly Langauage Program , Output:Symbol Table*/
import java.io.*;
class pasone
{
public static void main(String ar[])throws IOException
{
int i;
String a[][]={ //string array
{"","START","101",""},
{"","MOVER","BREG","ONE"},
{"","MOVEM","BREG","TERM"},
{"AGAIN","MULT","BREG","TERM"},
{"","MOVER","CREG","TERM"},
{"","ADD","CREG","N"},
{"","MOVEM","CREG","RESULT"},
{"N","DS","6",""},
{"RESULT","DS","6",""},
{"ONE","DC","1",""},
{"TERM","DS","3",""},
{"END","","",""}
};
int lc=Integer.parseInt(a[0][2]);//parsing string arguements into an integer object(returns-101)
String st[][]=new String[5][2];//create object & variable(st)->refer to object in the heap memory.
int cnt=0,l;
for(i=0;i
wish u could have uploaded code in description
Ok...I will do it
@@IndiBuzzerTechnicalSolution plz
Where is code
@@IndiBuzzerTechnicalSolution where is the code ?
/*Java Program TO Implement Pass-I of Two Pass Assembler , Input: Assembly Langauage Program , Output:Symbol Table*/
import java.io.*;
class pasone
{
public static void main(String ar[])throws IOException
{
int i;
String a[][]={ //string array
{"","START","101",""},
{"","MOVER","BREG","ONE"},
{"","MOVEM","BREG","TERM"},
{"AGAIN","MULT","BREG","TERM"},
{"","MOVER","CREG","TERM"},
{"","ADD","CREG","N"},
{"","MOVEM","CREG","RESULT"},
{"N","DS","6",""},
{"RESULT","DS","6",""},
{"ONE","DC","1",""},
{"TERM","DS","3",""},
{"END","","",""}
};
int lc=Integer.parseInt(a[0][2]);//parsing string arguements into an integer object(returns-101)
String st[][]=new String[5][2];//create object & variable(st)->refer to object in the heap memory.
int cnt=0,l;
for(i=0;i
which software to use to run code
On Linux operating system...use terminal
@@IndiBuzzerTechnicalSolutionand for windows which software
Sir Hindi lectures banao na ?
bhai tu mere jaisa he
sir can we get code?
Code is added in comment also you can get link in Description
Code is added in comment also you can get link in Description