예제 #1
0
 public void Visit(PrintObjectName ps)
 {
     sw.WriteLine("\t;print name statement (id already on stack)");
     //the object number should already be on the stack
     //sw.WriteLine("\tpuls a ; pop obj name to print");
     sw.WriteLine("\tclra ; pad it with a 0");
     sw.WriteLine("\tpshs a ; to promote it to a short");
     sw.WriteLine("\tjsr print_obj_name");
     sw.WriteLine("\tleas 2,s ; pop param");
 }
예제 #2
0
 public void Visit(PrintObjectName ps)
 { //id is on stack?
     sw.WriteLine("\tnop ;print name statement");
     sw.WriteLine("\tcall print_obj_name");
     sw.WriteLine("\tadd sp,2  ; pop params");
 }
예제 #3
0
 public void Visit(PrintObjectName ps)
 {
     sw.WriteLine(Tabs() + "param1 = param_stack_pop();");
     sw.WriteLine(Tabs() + "print_obj_name(param1); ");
     sw.WriteLine(Tabs() + "print_cr();");
 }
예제 #4
0
 public void Visit(PrintObjectName ps)
 {
     sw.WriteLine("\tpla");
     sw.WriteLine("\tjsr print_obj_name");
 }
예제 #5
0
 public void Visit(PrintObjectName ps)
 {
     sw.WriteLine("\tpop af");
     sw.WriteLine("\tcall print_obj_name");
 }